Hello,
I’m curious how Unity/Mono handles instancing of Javascripts in terms of memory and performance.
Is it better to create a “stub” script as a component for game objects that calls functions a single, global script that implements the logic, or is it okay to have a large script with lots of functions attached to each object?
In other words, does Unity/Mono actually create a full instance of the script per game object? Or does it only instance the variables and reuse the code?
Thanks,
Brett