-
Notifications
You must be signed in to change notification settings - Fork 0
Game Structure
Ethan edited this page Sep 8, 2025
·
1 revision
Assets
│── Resources/
│ ├── Animations/
│ ├── Prefabs/
│ ├── Scenes/
│ ├── ScriptableObjects/
│ ├── Shaders/
│ ├── Sprites/
│ └── Sprites/
│── Scripts/
│── Editor/
│── Tests/
│ ├── PlayMode/
│ └── EditMode/template-game/Assets/This folder represents the core of your Unity game. It includes a predefined structure that must be respected to ensure consistency across all OMGG games.
To properly rename your game (including assemblies, workflows, references...) use the provided script:
rename.ps1📌 More details about the renaming process can be found in Creating a New Game.
Inside Assets, you will find the following structure:
Assets
│── Resources/
│ ├── Animations/
│ ├── Prefabs/
│ ├── Scenes/
│ ├── ScriptableObjects/
│ ├── Shaders/
│ ├── Sprites/
│ └── Sprites/
│── Scripts/
│── Editor/
│── Tests/
│ ├── PlayMode/
│ └── EditMode/1️⃣ Assembly Definition
-
File:
template-game.asmdef - Defines the assembly for the game and its dependencies.
- Developers are responsible for adding any required dependencies here.
2️⃣ Scripts/
- The main code of the game.
- Should follow the Development Standards for consistency and readability.
3️⃣ Editor/
- Contains editor-specific utilities and tools.
- Anything placed here will not be included in runtime builds.
4️⃣ Resources/
- Stores additional assets such as scenes, prefabs, or data files required by the game.
- These resources can be dynamically loaded at runtime via
Resources.Load.
5️⃣ Tests/ Split into two subfolders:
- PlayMode/ → Tests executed within a running Unity environment.
- EditMode/ → Tests executed in the Unity Editor without entering Play Mode.
📌 Tip: Keep tests small, isolated, and well-documented to ensure maintainability.
- Use the
rename.ps1script after creating the game. - Add dependencies to the assembly definition only when required.
- Keep tests up to date.
- Follow the OMGG Development Standards for coding, testing, and documentation.
- The structure above is mandatory and ensures consistency across all OMGG games.
- Failure to provide adequate testing or to comply with conventions may delay the validation and integration of certain features.