Partager via


getEyeParameters method

The getEyeParameters method returns the current VREyeParameters for the given eye.

Syntax

var retval = VRDisplay.getEyeParameters(whichEye);

Parameters

  • whichEye
    Type: VREye

Return value

Type: VREyeParameters

The VREyeParameters for the given eye.

Remarks

The VREye enum has the following enumerations:

Member Description
"left" Get parameters from left eye.
"right" Get parameters from right eye.

 

The eye parameters could change at any time due to external reasons like the user changing the interpupillary distance with the hardware.

See also

VRDisplay