ObjectNames Manual     Reference     Scripting  
Scripting > Editor Classes > ObjectNames
ObjectNames

Helper class for constructing displayable names for objects.

Note: This is an editor class. To use it you have to place your script in Assets/Editor inside your project folder. Editor classes are in the UnityEditor namespace so for C# scripts you need to add "using UnityEditor;" at the beginning of the script.

Class Functions
NicifyVariableName

Make a displayable name for a variable.

GetInspectorTitle

Inspector title for an object.

GetClassName

Class name of an object.

GetDragAndDropTitle

Drag and drop title for an object.

SetNameSmart

Sets the name of an Object.