ecb-system-timing

Community

Choose the right ECB playback boundary.

AuthordyCuong03
Version1.0.0
Installs0

System Documentation

What problem does it solve?

It prevents incorrect Entity Command Buffer (ECB) playback timing when using Unity DOTS structural changes, avoiding cases where entities appear too early or too late relative to the SimulationSystemGroup.

Core Features & Use Cases

  • Select BeginSimulation vs EndSimulation: Guarantees structural changes become visible at the intended point in the frame (current frame simulation vs next frame).
  • Guard with RequireForUpdate: Ensures the required ECBSystem singleton exists to avoid runtime exceptions in custom worlds or test environments.
  • Safe ECB lifecycle guidance: Prevents caching the ECB across frames and documents how to create the command buffer during OnUpdate.

Quick Start

Add state.RequireForUpdate<BeginSimulationEntityCommandBufferSystem.Singleton>() in OnCreate and create your ECB in OnUpdate from that singleton before issuing structural commands.

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: ecb-system-timing
Download link: https://github.com/dyCuong03/unity-agent-team/archive/main.zip#ecb-system-timing

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.