Navigation
API > API/Runtime > API/Runtime/EyeTracker > API/Runtime/EyeTracker/UEyeTrackerFunctionLibrary
Description
Returns unfied gaze data from the eye tracker. This is a single gaze ray, representing the fusion of both eyes.
| Name | GetGazeData |
| Type | function |
| Header File | /Engine/Source/Runtime/EyeTracker/Public/EyeTrackerFunctionLibrary.h |
| Include Path | #include "EyeTrackerFunctionLibrary.h" |
| Source | /Engine/Source/Runtime/EyeTracker/Private/EyeTrackerFunctionLibrary.cpp |
UFUNCTION (BlueprintCallable, Category="Eye Tracking")
static bool GetGazeData
(
FEyeTrackerGazeData & OutGazeData
)
True if the returned gaze data is valid, false otherwise. A false return is likely to be common (e.g. the when user blinks).
Parameters
| Name | Remarks |
|---|---|
| PlayerController | The player for whom we are tracking. Null can be ok for some devices, but this may be necessary for others to determine viewport properties, etc. |