EditorGUIUtility
.PingObject
Manual
Reference
Scripting
Scripting
>
Editor Classes
>
EditorGUIUtility
EditorGUIUtility
.PingObject
Menu
Overview
Runtime Classes
Attributes
Enumerations
Editor Classes
Enumerations
History
Index
EditorGUIUtility
All Members
Class Variables
systemCopyBuffer
whiteTexture
Class Functions
AddCursorRect
CommandEvent
DrawColorSwatch
DrawCurveSwatch
FindTexture
GetBuiltinSkin
HasObjectThumbnail
HSVToRGB
Load
LoadRequired
LookLikeControls
LookLikeInspector
ObjectContent
PingObject
QueueGameViewInputEvent
RenderGameViewCameras
RGBToHSV
Inherited Class Variables
hotControl
keyboardControl
Inherited Class Functions
GetControlID
GetStateObject
GUIToScreenPoint
QueryStateObject
RotateAroundPivot
ScaleAroundPivot
ScreenToGUIPoint
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
);
}