Unique ID
Posted: Sat Feb 11, 2023 7:58 pm
Hey! I'm not using any autosave features, but I'm trying to save some custom data for particular objects in a specific scene. Let's say it's a "Point Of Interest" GameObjects that must save just one bool value "ifVisited". What is the best/correct method to save and load it? I thought about something like
1. Generate a unique ID for each GameObject I want to save
2. Save a pair: ID + boolValue in a file
3. On scene load read from a file and assign boolValue for each GameObject with a certain ID
BUT! I'm pretty sure it's a task that EasySave probably already solve for me in some way. Like, do I really need to invent my own unique ID generation or EasySave already have something?
1. Generate a unique ID for each GameObject I want to save
2. Save a pair: ID + boolValue in a file
3. On scene load read from a file and assign boolValue for each GameObject with a certain ID
BUT! I'm pretty sure it's a task that EasySave probably already solve for me in some way. Like, do I really need to invent my own unique ID generation or EasySave already have something?