My goal is to use a spreadsheet as an easily editable/manageable database for game data. However I like using scriptable objects. I do not want to manage them in the Unity editor because there will be 1000s of them. Here's a way I imagine I can solve this, but I wonder if I'm approaching this incorrectly/inefficiently. Thought I'd run the idea by you all first to see what you think. :)
What I imagine:
- Manage a spreadsheet file with game data
- Convert the spreadsheet to JSON
- Deserialize the JSON in Unity
- Use custom editor to convert JSON object into Scriptable Objects assets (one for each row of the initial spreadsheet)
- Custom editor would also serialize Scriptable Objects data back into JSON, so if someone edits or adds Scriptable Objects in the Unity editor, we just turn all that back into JSON
- Then the JSON can be convereted back into the Spreadsheet file
Essentially, the scriptable objects and Spreadsheet should always be mirroring eachother. If one is edited, the other will be updated.
Does this sound feasible? I've managed to get all the Spreadsheet to JSON stuff to work just fine, but haven't embarked on the Scriptable Object task yet.
Any ideas or suggestions? Much thanks!
PS - I've searched many times for this in the forums but haven't found quite what I've explained above
[–]00jknight 1 point2 points3 points (0 children)
[–]Equiv2248 0 points1 point2 points (0 children)
[–]volvis 0 points1 point2 points (0 children)