unity-coding

Community

Write Unity C# code with best practices.

AuthorBreakerOfStems
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill helps developers write Unity C# code that adheres to best practices, ensuring it functions correctly in both the Unity Editor and headless/server environments.

Core Features & Use Cases

  • Namespace Adherence: Enforces namespaces that match the folder structure for better organization.
  • Assembly Definitions (asmdef): Guides the creation of asmdef files to optimize compile times and manage dependencies.
  • Editor vs. Runtime Code Separation: Differentiates between code meant for the Editor and code for runtime, preventing common errors.
  • Headless-Friendly Code: Provides patterns to avoid issues in headless builds (e.g., null checks for Camera.main).
  • ScriptableObjects vs. MonoBehaviours: Advises on the appropriate use of ScriptableObjects for data and MonoBehaviours for scene-specific behavior.
  • Deterministic Server Code: Offers guidance on writing server-authoritative code using FixedUpdate and seeded random numbers.

Quick Start

Implement gameplay and system code changes following Unity conventions and best practices.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: unity-coding
Download link: https://github.com/BreakerOfStems/claude-skills/archive/main.zip#unity-coding

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.