[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4713: include(../allaccess.php): failed to open stream: No such file or directory
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4713: include(): Failed opening '../allaccess.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php')
Net Talk • Data management: prefabs vs database-like gameobject
Page 1 of 1

Data management: prefabs vs database-like gameobject

Posted: Wed Oct 05, 2022 6:03 am
by Filall
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?