- Home /
Component Is Heavy
Hi. I Have a Component That Is Contain All Of My Game's Data Like a Database. But Now Viewing And Assigning in That Component Is Very Very Slow. So I can't Actually Work With My Component, And Also Can't Move My Data To Another Component. Any Suggestion To Work Fast With This Component?
Answer by Bunny83 · May 27, 2018 at 02:43 PM
What kind of data do you have stored in that class? Can you show some of your variable declarations? Also how much data do you have stored in your class? You may want to create some ScriptableObjects to store pure static data as assets in your project. If you have already a lot of data setup you can copy it "manually" by opening the corresponding assets in a text editor (given you set the asset serialization mode to force text). An alternative would be to write a migration editor script that moves the data over. However we can't get any more specific without more information.
Answer by hadisajjadi · May 27, 2018 at 03:35 PM
Thank You For Answer. I have a lot of data on That Component. a lot. Such As Text And Numbers And Bool (Most of them). But a Lot. I Cant Use ScriptableObject Becuase I'm Not Created This Component In First Place And Beside The Data Is Referenced All Over The Project. So I Have To Use This Component But Is Running Heavy On Editor So Give Me Another Solution.
Your answer
Follow this Question
Related Questions
How to make sure custom init methods are called? 1 Answer
Making button sound components to many button instances? 2 Answers
How do I go about using a server to store and retrieve data? 0 Answers
Why PlayerPrefs not working although I use "HasKey" and Save() on android? 0 Answers
How to store int[][] as persistent data? 2 Answers