Documentation

Unity Engine

Download Unity

Unity Engine

sortHierarchyByName

Sorts the gameObject hierarchy by name.
Read time 1 minuteLast updated 2 months ago

Definition

  • Type: Property
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
public bool sortHierarchyByName { get; set; }

Remarks

When enabled, gameObjects are sorted by alphabetical order within the hierarchy. Disable this property to preserve the hierarchy order defined in the imported file.