Best way to keep unity file structure organized
Unity projects file structure
YYYY[.MM optional] <venue it was created at> - <name of the project>
docs/
subdirectory with images and other webpage related stuffREADME.md
title
(or “Noname”), a [game/app/tool] created [at game jam name | for something | … ].authors
(name surname - role [music / programming)screenshots
or gifCode is
playable or not.State of the game
[playable / unplayable prototype | finished game]Platform
2 person coop on PC with xbox controller
<game_name>_unity/
all unity files go here, this is named like this because in unity hub you will see only this name in project structureAssets/<your_name>/
: your own utilities / extensions / common classesAssets/<game_name>/
: all game specific files this is because all plugins are located by default in <unity>/Assets/ directory and it quickly it is impossible to differentiate between your own classes and 3rd partyDesign
all non essential images used during developmentImages
all game imagesMaterials
Prefabs
Scenes
even if it’s oneScriptable Objects
I am still thinking if spaces are good idea in directoriesShaders
Scripts
all your .cs filesCommands
this is the counterpart of Controllers from other frameworksModels
Scriptable Objects
this is a script for a scriptable object, not the scriptable object instanceServices
Widgets
Code conventions:
Assets/<your_game>
I don’t write any namespaceAssets/<your_name>
i putnamespace. In my case this is `namespace KBobnis`
StrangeIOC framework
I use this framework and it greatly organizes the file structure inside the Scripts
directory. Without it, all you have is components that have all types of responsibilities mixed in together and making any sensible structure is futile