|
Ping an object in a window like clicking it in an inspector
// Pings the currently selected Object
@MenuItem("Examples/Ping Selected")
static function Ping() {
if(!Selection.activeObject) {
Debug.LogError("Select an object to ping");
return;
}
EditorGUIUtility.PingObject(Selection.activeObject);
}