Get the child of the parent the root of the scene

Get the child of the parent the root of the scene

Example

I have a tree of elements in the scene made up of


father child 1 child 2 child 3


The second child has a C# code

From inside this code, I want to reach the rest of the brothers

I hope that the example is clear I am weak in English

Thanks

To get “child3” from “child2”, you have to type :

child2.transform.GetChild(0)

To get “father” from “child2”, you have to type :

child2.transform.parent.parent