You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
im working on a R3F scene which is within a React web (its a separate page that can be navigated to). the scene uses rayCaster to implement some animation events that relies on the cameraRef. On pageload/reload, everything works, everything initialize properly and all the events work, but upon navigating out and back in my r3f component I faced a simple but destructive issue for my cameraRef. It doesn't re-instantiate the cameraRef properly (i checked the states by a lot of debugging), so once i click i get the THREE.Raycaster: Unsupported camera type: undefined.
a single hint would make my day 🤞🏽 😭 camera&raycaster.txt
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
im working on a R3F scene which is within a React web (its a separate page that can be navigated to). the scene uses rayCaster to implement some animation events that relies on the cameraRef. On pageload/reload, everything works, everything initialize properly and all the events work, but upon navigating out and back in my r3f component I faced a simple but destructive issue for my cameraRef. It doesn't re-instantiate the cameraRef properly (i checked the states by a lot of debugging), so once i click i get the THREE.Raycaster: Unsupported camera type: undefined.
a single hint would make my day 🤞🏽 😭
camera&raycaster.txt
Beta Was this translation helpful? Give feedback.
All reactions