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?