Unity - Scripting API: ObjectNames
class in UnityEditor
Success!
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
Submission failed
For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.
Description
Helper class for constructing displayable names for objects.
Static Methods
| Method | Description |
|---|---|
| GetClassName | Class name of an object. |
| GetDragAndDropTitle | Drag and drop title for an object. |
| GetInspectorTitle | Inspector title for an object. |
| GetUniqueName | Make a unique name using the provided name as a base.If the target name is in the provided list of existing names, a unique name is generated by appending the next available numerical increment. |
| NicifyVariableName | Make a displayable name for a variable. |
| SetNameSmart | Sets the name of an Object. |