react-three-game
Installation
SKILL.md
react-three-game
React Three Game mounts serializable prefab documents as native React Three Fiber scenes. Components define the vocabulary; prefab JSON composes that vocabulary into entities.
Core model
| Scope | Meaning | API |
|---|---|---|
| Scene | The outer R3F scene shared by composed prefabs | useScene() → { root, mode } |
| Prefab | One serializable document with local node ids and shared materials | usePrefab() → PrefabApi |
| Node | One entity in the active prefab | useNode(), useNodeObject(), useNodeHandle() |
| Component | A registered renderer/editor capability selected by type |
registerComponent(component) |
Child prefabs inherit the parent scene and receive their own prefab document scope.