ThreeView
For API documentation check here.
<ThreeView> is a Entity View that lets your entities partake in ThreeJS scenes.
In addition to familiarity with ThreeJS, this documentation also assume some familiarity with:
If you don't know them already, check them out. Incredible libraries.
#
ThreeView as a Facet<ThreeView> is used like a normal facet:
Heads up!
Notice that we've wrapped a @react-three/fiber <Scene> around everything.
It doesn't matter whether <Scene> or ECS.Provider comes first though.
It can also be queried like a normal facet:
#
Child Content<ThreeView> should have a single child that is either a @react-three/fiber or @react-three/drei compatible component.
#
Accessing the view childSimply use the ThreeView.object3d property:
See Entity Views for more information.