- Home /
How to serialize/deserialize entities at runtime
Hello, I have project in which I have entities in "quadrants"(divided parts of world) and I want to serialize them and save them into file and deserialize and instantiate them at runtime when needed.
I got tip of using SerializeUtilityHybrid, but I dont really understand it and if it is good.
Next I thought of using NativeMultiHashMap to store the serialized data with each quadrant being a key in the hashmap and each serialized entity going into its quadrant key. I would then write this entire NativeMultiHashMap into a file and when loading I would read it and take needed entities from it and instantiating them back into the world in the exact same state as they were before.
What do you think about these proposed methods, are they good? are they performant? are they reliable? And are there better?
I am open and will be thankful for any tips, tricks, ideas and suggestions. Thank you very much.
Your answer
Follow this Question
Related Questions
how can serialize a gameobject 1 Answer
Serialized data not getting saved in iPhone 1 Answer
Unity Serializer scripting error 1 Answer
Saving using Serialization and IDs 0 Answers
Error serializing a class to save / load 2 Answers