wave7-managed-singleton-pattern

Community

Access shared managed config across ECS

AuthordyCuong03
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill solves the challenge of making a single shared managed Unity/ECS object accessible to many systems without passing references through constructors or maintaining fragile global state.

Core Features & Use Cases

  • Managed Singleton Bootstrap: Create exactly one singleton entity at world initialization by attaching a managed component once, then disabling the bootstrap system.
  • System-Wide Retrieval (Non-Burst): Read the managed singleton from any non-Burst system using the ManagedAPI lookup pattern.
  • Safety Guardrails: Avoid common ECS pitfalls like missing singleton guards, using static fields, and accessing managed singletons from Burst contexts.

Use case example: Store a ScriptableObject-based game configuration asset as a managed singleton so gameplay systems can read shared tuning values (e.g., max enemies, spawn rates) without wiring references everywhere.

Quick Start

Tell your AI to implement a one-time bootstrap system that creates a singleton entity with a managed component, then retrieve that configuration from other non-Burst systems using the ECS ManagedAPI.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 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: wave7-managed-singleton-pattern
Download link: https://github.com/dyCuong03/unity-agent-team/archive/main.zip#wave7-managed-singleton-pattern

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 471,000+ vetted skills library on demand.