- Home /
Large number of same scripts
Hello, I have one script with a lot of variables. Every object will use same script with same variables. Does it use more memory? What if I have 200+ game objects using that script. Does static solve the problem?
Comment
Best Answer
Answer by ava4414 · Mar 30, 2014 at 07:40 PM
yea it consumes a lot of memory, what if you use a clas that holds all variables and the other script int he 200+ G.O that uses the variables script
Your answer
![](https://koobas.hobune.stream/wayback/20220613141545im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Editor Import Script for Platform Settings 0 Answers
How can i convert this javascript line to csharp ? 1 Answer
Where can i get the default Host Migration Script ? (C#) 0 Answers
How would change xbox controlls to the keyboard in a script? 0 Answers
How can i rotate the camera with the mouse but only when drag ? 0 Answers