Legacy Documentation: Version 5.4
LanguageEnglish
  • C#
  • JS

Script language

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

Camera.SetStereoProjectionMatrices

Switch to Manual
public void SetStereoProjectionMatrices(Matrix4x4 leftMatrix, Matrix4x4 rightMatrix);

Parameters

leftMatrix Projection matrix for the stereo left eye.
rightMatrix Projection matrix for the stereo right eye.

Description

Set custom projection matrices for both eyes.

You can resume using the Unity computed matrices by calling Camera.ResetStereoProjectionMatrices.