↧
Answer by Dave-Carlile
[GetComponentInChildren][1] returns a single instance. You're trying to assign the result to an array. Looks like you probably want to use [GetComponentsInChildren][2]. [1]:...
View ArticleAnswer by Kergal
I would change a couple of things. (but i use C#) . At the moment your your Array is of type component - which is weird (at least to me) . make it Transforms or GameObjects. then in your foreach loop....
View Article