Skip to content

Code Style

Fan Zhang edited this page Sep 7, 2022 · 7 revisions

Scripts path

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

Asset path

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

Code Style

https://google.github.io/styleguide/csharp-style.html

Clone this wiki locally