Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SetNameSmart(Object, string)

Sets the name of an Object.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
public static void SetNameSmart(Object obj, string name)

Parameters

Remarks

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