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.mdtitle(or “Noname”), a [game/app/tool] created [at game jam name | for something | … ].authors(name surname - role [music / programming)screenshotsor gifCode isplayable or not.State of the game[playable / unplayable prototype | finished game]Platform2 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 partyDesignall non essential images used during developmentImagesall game imagesMaterialsPrefabsSceneseven if it’s oneScriptable ObjectsI am still thinking if spaces are good idea in directoriesShadersScriptsall your .cs filesCommandsthis is the counterpart of Controllers from other frameworksModelsScriptable Objectsthis is a script for a scriptable object, not the scriptable object instanceServicesWidgets
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