EditorGUIUtility.PingObject Manual     Reference     Scripting  
Scripting > Editor Classes > EditorGUIUtility
EditorGUIUtility.PingObject

static function PingObject (obj : Object) : void

static function PingObject (targetInstanceID : int) : void

Description

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);
}