Hi, I'm using the Technical preview (9), and attempting to move the camera position via script. It works as intended in the desktop editor, but not in game. How can I move the VR camera? I'm using the VR camera created by adding VR support to the player settings, not the VR SDK prefab of old. EDIT: Have tried with a GVRViewer prefab attached to camera, same result. Thanks
Attach the camera to a parent game object and then move that parent game object, not the camera. You shouldn't try to move or orient the camera directly in VR.
DOH!!! I forgot this too! Thanks! For anybody else - What made me forget was that it was working in the editor quite happily! When I parented the camera it was working in both. Is this an editor bug? i.e. it shouldn't move the camera directly?
https://unity3d.com/es/learn/tutorials/topics/virtual-reality/getting-started-vr-development "You cannot move the VR Camera directly in Unity. If you wish to change the position and rotation, you’ll need to ensure that it is parented to another GameObject, and apply the changes to the parents Transform."
FYI, I had a CharacterController component attached to the main Camera on prior Unity version and it did work before when I moved the CC. But this does not work with the Unity Preview version so had to move it to the parent object.