Version: 2021.3
LanguageEnglish
  • C#

Eyes.TryGetRightEyeOpenAmount

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public bool TryGetRightEyeOpenAmount(out float openAmount);

Parameters

OpenAmount A float value, with a range of 0.0 to 1.0, that indicates how open the right eye is. A value of 0.0 indicates that the eye is fully closed, while a value of 1.0 indicates that the eye is fully open.

Returns

bool true if eyes can be queried for the amount that the right eye is open; otherwise false.

Description

Gets a value that represents the how far the right eye is open.