STUDIO: Access a script / call a function on an object defined in schema

I have a ā€˜Game Controllerā€™ script with an number of objects defined in the schema (ball1, ball2, ball3ā€¦)

These objects have a script attached to it ā€˜Ball Controllerā€™ and within the ball controller there is a function ā€˜changeTextureā€™. How can I call the changeTexture function on each ball within the Game Controller script?

Thanks!

Iā€™d suggest going through each entity you reference in the schema and updating the componentā€™s properties using mutate.

Thanks George but Iā€™m not exactly sure what you mean? Is there something I could do like ball.BallController.changeTexture() ? Something like that?