Skip to content

Instantly share code, notes, and snippets.

@glitchersgames
Created July 9, 2020 11:00
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save glitchersgames/0cd08d48c7eebcc467401c8b470950c7 to your computer and use it in GitHub Desktop.
Save glitchersgames/0cd08d48c7eebcc467401c8b470950c7 to your computer and use it in GitHub Desktop.
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);
}
}
@glitchersgames
Copy link
Author

Put inside an /Editor/ folder in your Unity project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment