Forum Discussion
AADProductions
10 years agoExplorer
Best practice for camera rotation offset in Unity 5
I'm working on a game where you spend a lot of time looking down and it's making people a bit uncomfortable. I'd like to add a 45° offset to the camera's x rotation to take the strain off their necks ...
peterept
10 years agoProtege
I know how you feel! It is not easy in the "Good Old Days" of VR.
The UI raycasting is probably running before I rotate the camera in LateUpdate(), changing that to Update() and making it's priority -100 (in script priority) might fix it. (I used LateUpdate() just to be sure everything was set).
Otherwise, you may need to stick a render texture camera on the grandfather game object and use that for UI. That should definately work.
I can take a quick look if you want to send me a cut-down version of the project via PM.
The UI raycasting is probably running before I rotate the camera in LateUpdate(), changing that to Update() and making it's priority -100 (in script priority) might fix it. (I used LateUpdate() just to be sure everything was set).
Otherwise, you may need to stick a render texture camera on the grandfather game object and use that for UI. That should definately work.
I can take a quick look if you want to send me a cut-down version of the project via PM.
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 9 years agoAnonymous
- 11 months ago
- 5 months ago
- 2 years ago