Code Style
Fan Zhang edited this page Sep 7, 2022
·
7 revisions
Each file needs to be under a specific folder in the /Asset/Scripts folder. e.g. AbstractTargetFollower.cs is a scripts related to camera control, it should be put in the path of /Asset/Scripts/Cameara
This structure is usually a good way of organizing the project’s directory (specially for projects where the assets are shared among multiples prefabs/game objects):
Assets
- Imports
- Animations
- Audios
- Materials
- Models
- Fonts
- Prefabs
- Textures/Sprites
- Sandbox
- Scenes
- Levels
- Scripts
- Editor
- Shaders
- Packages