Data management: prefabs vs database-like gameobject

Got a great idea? Need a great idea? Share it! Please, no freelance, VO/Imaging or other business plugs!
Post Reply
Filall
Posts: 1
Joined: Wed Sep 21, 2022 9:39 am

Data management: prefabs vs database-like gameobject

Post by Filall » Wed Oct 05, 2022 6:03 am

Hi

Another dev and I (two amateurs) think differently on how to keep and modify data in our game.

- I would create a prefab base and then generate variants to change data directly in the prefabs inspector.
Weapon gameobjects would be instanced directly from the prefab variant.

As he sees it, databases are more performant than prefabs.
As I see it, database in the hierarchy is an anti-pattern, as it means keeping out-of-game data were it does not belong, and prefabs are far simpler to navigate through, in the editor and through referencing.

What do people here think of this? Are there special benefits to using a database-like structure? If yes, for what scope? Is it useful for mobile games maybe?

Post Reply