My next project will use Unity 5.6. It will be a game and that will leverage AssetBundle for remote scenes loading. New scenes will be incrementally added afterward. Therefore I hope I won't use a too bad structure that need to be changed a lot in the later stage of the project. Is there a standard/recommended directory structure for Unity projects?
At the end of the day, it comes down to whatever works the best for you and makes the most sense for the project. Working on small solo projects, I've found that keeping a simple folder structure separating asset types has worked well to keep things organized (Textures, Scripts, Prefabs, Sprites, etc). Another popular method is to organize by object type:
Animals
├── Crow
│ ├── script
│ └── sprite
└── Snake
├── script
└── sprite
In my experience, organizing by Scene has generally not ended up working out well, especially in the case where assets are shared between scenes - stuff tends to get lost.
I suggest taking some time to mess around with your organization and see what feels right for you, especially if this is your first unity project. Moving files around after you start will not break associations in the inspector, assuming you are not searching through directories in your scripts.
If you need more help deciding, take a look at some of the links below. Link 3 in particular has a pretty lengthy discussion on this topic.
Unity actually does encourage the following structure:
Assets
├── Animations
│ └── ...
├── Editor
│ └── ...
├── Models
│ └── ...
├── Prefabs
│ └── ...
├── Scripts
│ └── ...
└── Textures
└── ...
This is due to the object oriented way in which Unity thinks: Each folder contains only the information of a certain type needed for an asset. This is especially visible when you look at the Special Folders in Unity.
Even when you look at how they build up their standard assets you will notice this structure. I hope you won't have a lot of scenes which do not share any assets with the other scenes, because this would be a very big waste of resources.
What is notable in the Standard Assets, is that in their demo, they have a folder called Menu
which contains its own Scripts, Prefabs and Sprites folders.
So I suggest you do the following (note: This is my opinion):
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With