Ok so say I had a function on 12 different scripts. and i wanted to call all of them from one script? So in turn, i have a updateThisOrThat function on every script on a b c d e f and g. Now from h i want to call the fuction on all of the others, is this possible in unity, btw I use javascript. Thanks
Hi,
I’m not really sure what you mean, some code would be useful. But my suggestion would be a for loop, that just runs over an array of scripts, which you can assign at runtime or in the inspector and call them in this loop. Alternatively, if its a multiplayer game, you could use an RPC or something similar.
Hope that helps
Good Luck
IEMatrixGuy