コンポーネント除去
dx12_remove_componentInstantly remove a component from an entity using its JSON key. Core components like transform and name are immutable and cannot be removed.
Instructions
エンティティからコンポーネントを除去する。component は jsonKey。transform/name などコア不変のものは除去不可。即時反映で {entityId, removed} を返す。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | エンティティ名(完全一致)。id の代わりに使える。Stop 後など id が変わる場面で安定。 | |
| entity | No | エンティティ id(int)。name と排他。 | |
| component | Yes | 除去する jsonKey。例: pointLight, rigidBody, boxCollider, sphereCollider, camera, tags |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | No | エンジンからの生の結果。実際の形は各ツールの説明 / dx12_describe_components を参照。text にも同内容を JSON 文字列で格納。 |