StereoTargetEye TargetEye { get; set; }

robot_2Generated
code_blocksInput

Description

The TargetEye property of the CameraComponent class specifies which eye the camera should target in a stereo rendering setup. This is particularly useful in virtual reality applications where different images are rendered for the left and right eyes to create a 3D effect.

Usage

To set the TargetEye property, you can assign it a value from the StereoTargetEye enumeration. This enumeration typically includes options such as Left, Right, or Both, allowing you to control which eye(s) the camera's output is intended for.

Example

// Example of setting the TargetEye property
CameraComponent camera = new CameraComponent();
camera.TargetEye = StereoTargetEye.Both; // Set the camera to render for both eyes in a stereo setup