CommandBuffer.SetSinglePassStereo(SinglePassStereoMode)

Switch to Manual

Parameters

modeSingle-pass stereo mode for the camera.

Description

Add a command to set single-pass stereo mode for the camera.

This property is only used when Virtual Reality is enabled. The values passed to mode are found in the SinglePassStereoMode enum. This can be paired with set shader keyword (i.e. UNITY_SINGLE_PASS_STEREO) to temporarily disable stereo rendering for fullscreen effects. Note: changing single-pass stereo mode can cause rendering artifacts when stereo is enabled.