Skip to content

Unity Project Convention

Mykhailo Moroz edited this page Jul 19, 2021 · 2 revisions

Unity Project Convention

This page contains general recommendations for building unity projects. This is an approach that is being used by our team in order to build modular and versatile unity projects.

General approach

In order to divide a project into manageable and maintainable pieces, we should use Assembly definitions

Project folder structure example

Assets|

  | Modules |

            | Core

            | Gameplay

             ....

            | Input

Where:

  • Core - Core module that contains the core logic, scenes and assets for a project
  • Gameplay - Gameplay module that contains main gameplay logic, scenes, assets
  • Input - Module that contains input logic for a project, can be swapped for a different platform

Packages that recommended to use in projects

  • com.stansassets.foundation - Foundation Library is a free open source product that contains lots of useful APIs, Utilities and Extension methods. We do not provide any articles or tutorials for these plugins. But we do try to keep every public API documented and self-explanatory.
  • com.stansassets.scene-management - Provides a set of tools to organize scene loading and management in the Unity project.

(Draft)