一键导入
bl-core-states
Use for BovineLabs Core state components, registration, transitions, history variants, enableable states, or state-system debugging.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use for BovineLabs Core state components, registration, transitions, history variants, enableable states, or state-system debugging.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use for BovineLabs Core ConfigVars, manager initialization, runtime values, editor bindings, or config-variable debugging.
Use for BovineLabs Core IEntityCommands wrappers across bakers, command buffers, parallel jobs, tests, shared components, or entity mutations.
Use for BovineLabs Core custom inspectors or property drawers, prefab override handling, serialized-property editing, or inspector debugging.
Use for BovineLabs Core initialization or destruction lifecycles, lifecycle groups, ordering, authoring, or world startup and shutdown issues.
Use for BovineLabs Core ObjectId definitions, registries, groups, auto-id or autoref, lookup baking, runtime lookup, or world object registry behavior.
Use for BovineLabs Core pause modes, pause markers, pause-aware groups, transitions, or systems that must continue or stop while paused.
| name | bl-core-states |
| description | Use for BovineLabs Core state components, registration, transitions, history variants, enableable states, or state-system debugging. |
Resolve Core source from Packages/com.bovinelabs.core or its exact package-cache entry. Select the model from required behavior before writing transition systems.
| Requirement | Model | Component shape |
|---|---|---|
| Exactly one active state | StateModel | Current/previous byte |
| Multiple coexisting states | StateFlagModel | Current/previous bit array, commonly BitArray256 |
| Exclusive state with back/forward history | StateModelWithHistory | Byte state plus history components |
| Flag set with history | StateFlagModelWithHistory | Bit arrays plus history components |
| Stable component presence with enabled/disabled state | StateModelEnableable | Every registered state component implements IEnableableComponent |
Do not layer custom history beside a non-history model or mix byte and flag component shapes.
StateAPI.Register maps one system handle to one state instance component and key; a system may register only one state instance.RequireForUpdate by default. Set queryDependency: false only when the system must update without the registered component.KSettingsBase key source; avoid unnecessary key indirection.ISystemStartStop system.OnStartRunning.OnUpdate using the cheapest mode compatible with surrounding work.OnStopRunning.Do not recreate a model every frame or force main-thread execution without a real dependency.
StateModelEnableable toggles enabled state instead of adding/removing components. Use it when stable archetypes and enableable queries are intentional; downstream systems must query enablement correctly.
RequireForUpdate behavior and component presence.For exact behavior read Documentation~/States.md, StateAPI.cs, and the selected model source under BovineLabs.Core/States.