Detecting Single Pass Stereo Rendering enabled at runtime from script

Hi !

Does anyone know how to check if Single Pass Stereo Rendering is enabled at runtime from script (not from shaders)?
Currently I have a “redundant” setting in a custom inspector that gets set/cleared aligned with the editor setting but I’d like to get rid of this value.

Seems VRSettings class does not expose this setting or at least I have not found it.

Thanks.

Bump. Need access to this as well.

1 Like

Check out PlayerSettings.StereoRenderingPath :).

But that would only work in the editor (PlayerSettings exists in UnityEditor namespace).

Seems you are correct, perhaps you could cache this variable in editor? but that does seem a bit of a hack. If I find something better I’ll let you know.

1 Like