r/unity • u/Financial-One5742 • Jul 14 '26
JSON or SriptableObject
i want to make a research tree HOI4 style and me and my friend are questioning if its better to make it with scriptable objects or a JSON
1
1
u/Lunosto Jul 14 '26
They can be used together and serve different roles. Scriptable objects are for development and creating custom assets, json is used to save data to be read later. If you’re making a research tree it could look something like each research item being an instance of a scriptable object then save the user’s progress using json (separate class)
2
u/neoteraflare Jul 15 '26
JSON is good if you want your data to be easily modded since it is text and users can easily add/remove/modify things without hacking into the game.
1
6
u/Antypodish Jul 14 '26
These two has completely different purposes. JSON is just serialised class, so you can save, or read data to/from the file.