Legacy Documentation: Version 5.5
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Camera.stereoActiveEye

Switch to Manual
public Camera.MonoOrStereoscopicEye stereoActiveEye;

Description

Returns the eye that is currently rendering. If called when stereo is not enabled it will return Camera.MonoOrStereoscopicEye.Mono.
If called during a camera rendering callback such as OnRenderImage it will return the currently rendering eye.
If called outside of a rendering callback and stereo is enabled, it will return the default eye which is Camera.MonoOrStereoscopicEye.Left.