Switch cameras in VR

Hi please i have two cameras in my VR projects, and when i switch the camera by turning one camera off, and turn the other camera on, i get a weird result, is there another way or efficient way to deal with switch camera in VR session please?

based on the documentation seems like i can get the camera but i’m unable to re-set it,

is there any work around please?

Anyway i created a third camera to match the position and the rotation of the camera that will be used, and regarding the main two cameras i disabled their camera components and used them just as a dummies

No, you can’t change XrManager’s session camera. As it’s parameters and transformation is linked with provided data from WebXR.

If you need to “teleport” or have a camera in a different place, you simply reparent it to some other entity so the position will be relative to it.

1 Like

yes! actually that was a good and fast solution to get over this, Thanks @moka !

1 Like