ShrinkSDK

Public Unity SDK packages and workspace. yeah, almost AI slop. ;)

com.cneicy.shrink-eventbus-entities (0.1.0)

Published 2026-08-26 03:03:59 +08:00 by cneicy

Installation

registry=https://git.crash.work/api/packages/ShrinkSDK/npm/
npm install com.cneicy.shrink-eventbus-entities@0.1.0
"com.cneicy.shrink-eventbus-entities": "0.1.0"

About this package

Burst-safe NativeQueue writer and playback adapter for ShrinkEventBus.

ShrinkEventBus Entities

com.cneicy.shrink-eventbus-entities 是可选 ECS/Burst 适配包。它不创建第二套事件总线,而是让 Burst Job 把 unmanaged IShrinkEvent 写入 NativeQueue<T>,随后由主线程或 ECS playback system 发布到指定的 IShrinkEventBus。

using var queue = new ShrinkEcsEventQueue<MyEcsEvent>();
var writer = queue.Writer;

// Burst Job 中:writer.Post(in eventData);
// Playback 阶段:
queue.Playback(worldBus);

限制:Burst 端只负责事实事件生产,不能直接执行托管 handler、UniTask、取消或结果裁决。

Dependencies

Dependencies

ID Version
com.cneicy.shrink-eventbus 2.0.0
com.unity.entities 1.0.11

Keywords

eventbus entities burst ecs
Details
npm
2026-08-26 03:03:59 +08:00
2
cneicy
2.8 KiB
Assets (1)
Versions (3) View all
0.1.5 2026-09-29
0.1.1 2026-08-28
0.1.0 2026-08-26