Is there a way to access the components attached to the children of a GameObject without using `GetComponentsInChildren()`?
Some way to access the children directly, then use GetComponent() to then access their components?
Thank you!
Is there a way to access the components attached to the children of a GameObject without using `GetComponentsInChildren()`?
Some way to access the children directly, then use GetComponent() to then access their components?
Thank you!
Transform.Find(string name) is your friend I suppose. http://unity3d.com/support/documentation/ScriptReference/Transform.Find.html
However, there might be multiple instances of a GameObject in my game, so that method would probably not work.
– BinaryCaveman@BinaryCaveman: why wouldn't it work?
– Eric5h5Never mind - thank you, spree! :)
– BinaryCaveman