react-three-game
Installation
SKILL.md
react-three-game
JSON-first prefabs. Mount with PrefabRoot, author with PrefabEditor, register custom components with registerComponent(), and reach into the live scene with useScene(), useNode(), or useEditorRef().
Scope
- Author scenes as JSON
Prefabtrees. - Mount with
PrefabRootor edit withPrefabEditor. - Add custom logic by registering
Components and rendering normal R3F children inside the editor canvas. - Read and mutate the live scene through one consistent surface: the
Sceneinterface, exposed asuseScene()(children ofPrefabEditor/PrefabRoot) andeditorRef.current(which extendsScene).
Schema
interface Prefab {
id?: string;
name?: string;
root: GameObject;
}