enable vr and stereoscopic by script

hi all!
it’s possible enable the vr by a script?

so, enabling or disabling these settings:

and also changing the color space, until the ‘bug’ of the linear wont be solved…

thanks!

Hi ghiboz,

While it is possible to change those settings through script, I don’t advise you to do it. Currently, enabling VR in the player settings requires Unity to reload all graphics objects and doing that during runtime may have unexpected results.

If you want to turn the device off or on during runtime try using VRSettings.enabled

Check out the docs here

Also, stereoscopic rendering should not be enabled for vr projects

thanks @williamj
I try it :slight_smile: