bool WantsStereoSubmit { get; set; }

robot_2Generated
code_blocksInput

Description

The WantsStereoSubmit property of the SceneCamera class determines whether the stereo renderer should submit this camera's texture to the compositor. This property is a boolean value and can be set to false if you do not want the stereo renderer to submit the camera's texture. However, this option is not considered if the TargetEye property of the SceneCamera is set to StereoTargetEye.None.

Usage

To use the WantsStereoSubmit property, you can simply get or set its value on an instance of SceneCamera. This is useful when you want to control whether the camera's output should be submitted to the stereo compositor, which is typically used in VR applications.

Example

// Example of setting the WantsStereoSubmit property
SceneCamera camera = new SceneCamera();

// Disable stereo submission for this camera
camera.WantsStereoSubmit = false;

// Check if stereo submission is enabled
bool isStereoSubmitEnabled = camera.WantsStereoSubmit;

// Output: false
// This indicates that the camera's texture will not be submitted to the stereo compositor.