Setting Camera LookAt on Scene Initialisation / Loading #1479
Answered
by
drcmda
jhancock532
asked this question in
Q&A
Replies: 1 comment 1 reply
-
<Canvas onCreated={state => state.camera.lookAt(...)}> |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
jhancock532
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a better way of setting the default canvas camera lookAt than the below solution?
It's a bit awkward. Asking because I came up with this myself, this solution (or the correct way of setting lookAt) would be useful to add into the documentation for beginners like me.
Beta Was this translation helpful? Give feedback.
All reactions