Skip to content

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/

Game Structure

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.


🔄 Game Renaming

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.


📦 Game Content

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/


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.


✅ Developer Responsibilities

  • Use the rename.ps1 script 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.

📌 Notes

  • 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.

Clone this wiki locally