wave8-dynamic-buffer-invalidation

Community

Keep DynamicBuffer reads safe after changes.

AuthordyCuong03
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Prevents undefined behavior, crashes, and silent corruption caused by reading a DynamicBuffer reference after a structural change invalidates its underlying memory pointer.

Core Features & Use Cases

  • Frame- and structural-change-safe access: Treats DynamicBuffer references as only valid within the current structural-change context.
  • Correct read-before-write ordering: Ensures buffer contents are read before performing operations like AddComponent, RemoveComponent, DestroyEntity, or CreateEntity.
  • Safe structural change handling: Uses EntityCommandBuffer (ECB) to defer structural changes until after reads complete, or explicitly re-fetches the buffer after changes.

Quick Start

Use the DynamicBuffer invalidation guidance when you call GetBuffer<T> and later perform any structural change in the same system update, by reading buffer contents first (or deferring structural changes with ECB) and never using the old buffer reference afterward.

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: wave8-dynamic-buffer-invalidation
Download link: https://github.com/dyCuong03/unity-agent-team/archive/main.zip#wave8-dynamic-buffer-invalidation

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.