Ways to save and load objects by using WorldStreamer 2
Hi, as in the title I am wondering about how to load and save objects. I am working on a survival game and we have a huge amount of trees on the map, we also use World Streamer 2. I am wondering about a solution that will save the state of the tree felled / and not. Currently I have created a simple array of bool values and will load / deload scene depending on the distance of the player. With OnSceneLoaded, it reads the values from the table and assigns a sequence to each tree, with OnSceneUnloaded it reads the actual state from the scene and saves it in the controller. My question is how else can it be done or will my solution be good for optimization? I am trying to use World Streamer 2 but so far my attempts have not been very successful.
Your answer
Follow this Question
Related Questions
How to use RenderStaticPreview OR get project viewer thumbnails for ScriptableObject assets? 2 Answers
problem with asset 2 Answers
Why is it that when I added a C sharp script to a game object, the game object disappeared? 0 Answers
Good practices for storing readonly data 0 Answers
how to open probuilder in unity? 1 Answer