◆ PopUp()

static void PopUp ( string  renamableString,
System.Action< string >  onOKCallback,
bool  cancelOnSelectionChange = true,
string  title = null,
Rect  screenPos = default(Rect),
UnityEngine.Object  potentialAssetToMove = null 
)
static
See also
Example Usage: NonSerializedExamples.cs
Parameters
renamableStringinitial value of string that will be renamed
onOKCallbackThis function will be called back when the user clicks OK. It is the responsibility of this function to store the new string appropriately.
cancelOnSelectionChangeWhen true, should the user select a different object in unity, this window will be closed, and changes canceled, automatically.
titleOptional title for the window. If excluded will be titled "Rename"
screenPosOptional location to draw window.
potentialAssetToMoveIf provided, the pop up will also show options to change the location of the asset, in the computer's file-system.

References EditModeIntervalCallbacks.Register().

+ Here is the call graph for this function: