I have the following setup: I have an empty game object, which has many childs. I would like to create a script, which I can attach to the empty game object, and do the following:
It loops trought the childs, and it changes it’s main textures. If the object name is “roadEdge”, than it skip the object, otherwise, it changes the main texture.
I have copied it to the script, but I have received 10 errors, starting in this line: foreach(Transform[] childs in transform) I am using javascript.
– Dreeka