What is the value that we get from Transform.GetSiblingIndex() ?
The value we get is the index of this transform under it’s parent.
transform.parent.GetChild(transform.GetSiblingIndex()) will return your own transform.
What is the value that we get from Transform.GetSiblingIndex() ?
The value we get is the index of this transform under it’s parent.
transform.parent.GetChild(transform.GetSiblingIndex()) will return your own transform.