Created
July 9, 2020 11:00
-
-
Save glitchersgames/0cd08d48c7eebcc467401c8b470950c7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEditor; | |
public static class HighlightObjectUtil | |
{ | |
[MenuItem("CONTEXT/Object/Ping!")] | |
static void Ping(MenuCommand command) | |
{ | |
EditorGUIUtility.PingObject(command.context); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Put inside an /Editor/ folder in your Unity project.