Scene/Engine
This is an easy hook to get confused!
// will not work (always null)const scene = useScene()return (<Scene><OtherComponent /></Scene>)
const OtherComponent = () => {// This does work!const scene = useScene();return ...;}
- Output
- Code