42
votes
Accepted
For a custom game engines, what should I do if my core data is malformed or missing?
Log an error and gracefully exit.
Ideally, display a human readable error on screen as well. There should be a core pipeline of hard coded functionality that operates without these data files. It's ...
11
votes
For a custom game engines, what should I do if my core data is malformed or missing?
Byte56 mentioned one option. There is at least one other:
Assume default values and display a Warning.
Depending on the nature of your data, it might be perfectly acceptable to assume some default ...
6
votes
For a custom game engines, what should I do if my core data is malformed or missing?
It depends on whether this happens during development or release.
During development, you will have all kinds missing things, errors, and mess-ups, constantly, all the time, and you may even want to &...
4
votes
Should game data be encoded in configuration files, given that it will almost always contain logic?
A game or an engine
If you were making a game, then you write the code for each case in your game. Then the configuration only needs to specify which of the possibilities it uses. Which seems to be ...
3
votes
Accepted
Is it still possible to set default script template for Unity Mac?
I suppose you installed your Unity Editor via Unity Hub, and if yes, then the path has changed to this
...
2
votes
How to fit game to screen size?
Many thanks to the DMGregory for help in this matter
The problem was that I have a script which manipulate with camera.rect:
...
Community wiki
1
vote
Should game data be encoded in configuration files, given that it will almost always contain logic?
Only externalize if you solve a problem with it
Configuration files and similar external resources are an option which should be used if the benefits outweigh the costs. Generally speaking I would ...
1
vote
Should game data be encoded in configuration files, given that it will almost always contain logic?
Moving game data into config files has several advantages:
You can edit these files without having to recompile the game. Which can, depending on your technology stack and the scope of your game, ...
1
vote
Accepted
How to pre-configure a prefab in the editor for multiple similar buttons before instantiating them
You can do that with prefab variants. A prefab variant is a prefab which inherits most of its properties from another prefab.
Create your basic button
Turn it into a prefab by dragging it from the ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
configuration × 32unity × 9
data × 5
c++ × 4
c# × 3
android × 3
architecture × 3
assets × 3
xml × 3
entity-system × 2
component-based × 2
scripting × 2
resolution × 2
loading × 2
file-format × 2
java × 1
xna × 1
game-design × 1
gui × 1
input × 1
html-canvas × 1
unreal × 1
server × 1
mobile × 1
webgl × 1