useFBX
A convenience hook that uses useLoader
and FBXLoader
:
useFBX(url)
function SuzanneFBX() {
let fbx = useFBX('suzanne/suzanne.fbx')
// wrap fbx in primitive.
return <primitive object={fbx} dispose={null} />
}
A convenience hook that uses useLoader
and FBXLoader
:
useFBX(url)
function SuzanneFBX() {
let fbx = useFBX('suzanne/suzanne.fbx')
// wrap fbx in primitive.
return <primitive object={fbx} dispose={null} />
}