website icon indicating copy to clipboard operation
website copied to clipboard

Drei documentation contols introduction unclear

Open theRealProHacker opened this issue 11 months ago • 0 comments

It is not clear to me where the useResource comes from. Which library exports it? How can it be accessed/imported?

https://dext.vercel.app/drei/controls/introduction

const myCamera = useResource()

return (
  <>
    <PerspectiveCamera ref={myCamera} position={[0, 5, 5]} />
    <OrbitControls camera={myCamera.current} />
  </>
)

theRealProHacker avatar Mar 14 '24 10:03 theRealProHacker