Today i run my test game and i noticed that my game were running slow when i had like 100 kinematic bodies on it
In the game those kinematic bodies autospawn just to destroyed when they hit a wall however i have got a script on those kinematic bodies and maybe the script is loaded one for each body so i think i have like 100 times my script loaded in the game...
my question is
1) How to know if a script is loaded multiple times (most important)
2) How to unload the destroyed nodes (mesh texture script) when i don't need them or when they "die" in game
I need to know those 2 things, there is no reason to load multiple scripts since i can load 1 script on a base node + there is no reason for the destroyed nodes to fill game buffers.