What problem does it solve?
Provides a single-source reference for C# naming, layout, and Unity-specific conventions to prevent inconsistent code, fragile Unity lifecycle checks, and mismatched dependency/injection patterns across the project.
Core Features & Use Cases
- Naming & Visibility: Defines private field, property/method, and constant naming conventions and requires explicit visibility.
- Unity-safe Patterns: Prescribes UnityEngine.Object null-check idioms, object disambiguation, and MonoBehaviour injection patterns to avoid lifecycle bugs.
- Structure & Maintainability: Enforces explicit types, field grouping, mandatory braces, class layout order, and async/reactive rules to improve readability and reduce runtime errors.
- Use Case: Use during code review or when authoring new C# modules to ensure contributions compile and behave consistently with project patterns.
Quick Start
Apply the code-style guidelines when writing or reviewing any C# file in this Unity project to enforce naming, explicit typing, Unity null-checks, field grouping, class layout, injection, and async/reactive rules.