Question by
Dichkinn · Sep 17, 2016 at 07:37 PM ·
script.variablesgameobjectsaccesschild object
How can I access to child objects variables from other C# script ?
Hello,
I have a gameobjet and 3 cubes childrens. Each cube has a different variable with a different Value. I would like from a C # script attached to another gameobject, access each variable of children (cubes) of gameobject
and variable for cube
Could you help me ?
Kind regards
capture1.png
(3.4 kB)
capture2.png
(4.5 kB)
Comment
Your answer
Follow this Question
Related Questions
Access Variables From 1st Script to 2nd Script? (C#) 1 Answer
On Button Click Create a gameobject (ui,no mouse stuff) 0 Answers
Invoking a Function From A Variblized Script And Object 1 Answer
Best way to set up a player object 0 Answers
How can I move a gameobjects box Collider with another asset? 0 Answers