What is Unity SiblingIndex ?

SiblingIndex is the index number used to determine the hierarchy between the objects under the same parent (here it means top layer).

Get and set can be done with the "GetSiblingIndex" and "SetSiblingIndex" methods.

Below is an example usage.

placeholder.transform.SetSiblingIndex(this.transform.GetSiblingIndex());



You May Interest

What is Unity FBX?

What is Unity IL2CPP ?

What is Unity Collider ?

Running Your Unity Project From Any Visual Studio You Want

What is Unity StartCoroutine ?