Five React Hooks: 操作 Five 的 Scene
获取 Five 的 Scene 的回调函数
Optional
useFiveSceneEffect(scene => { // object is a THREE.Object3D scene.add(object); return () => scene.remove(object); // 析构函数}); Copy
useFiveSceneEffect(scene => { // object is a THREE.Object3D scene.add(object); return () => scene.remove(object); // 析构函数});
Five React Hooks: 操作 Five 的 Scene