Manual     Reference     Scripting  
  
Scripting > Editor Classes > ObjectNames   
  • Menu
  • Overview
  • Runtime Classes
  • Attributes
  • Enumerations
  • Editor Classes
  • Enumerations
  • History
  • Index
  • ObjectNames
  • All Members
  • Class Functions
  • GetClassName
  • GetDragAndDropTitle
  • GetInspectorTitle
  • NicifyVariableName
  • SetNameSmart

ObjectNames.SetNameSmart  

static function SetNameSmart (obj : Object, name : String) : void

Description

Sets the name of an Object.

If the object is an Asset, renames the asset and file names to match the object.