Class MetaSocialEyeGazeFeature
Enable this feature to expose per-eye gaze data from XR_FB_eye_tracking_social
as a MetaSocialEyeGazeDevice in the Unity Input System.
Inherited Members
Namespace: UnityEngine.XR.OpenXR.Features.Meta
Assembly: Unity.XR.MetaOpenXR.dll
Syntax
[OpenXRFeature(UiName = "Meta Quest: Social Eye Gaze", BuildTargetGroups = new BuildTargetGroup[] { BuildTargetGroup.Standalone, BuildTargetGroup.Android }, Company = "Unity Technologies", Desc = "Exposes per-eye gaze data from XR_FB_eye_tracking_social as a Unity Input Device.", DocumentationLink = "https://docs.unity3d.com/Packages/com.unity.xr.meta-openxr@2.6/manual/features/social-eye-gaze.html", OpenxrExtensionStrings = "XR_FB_eye_tracking_social", Category = "Feature", FeatureId = "com.unity.openxr.feature.meta-social-eye-gaze", Version = "0.1.0")]
public class MetaSocialEyeGazeFeature : OpenXRFeature
Fields
featureId
The unique ID that identifies this feature.
Declaration
public const string featureId = "com.unity.openxr.feature.meta-social-eye-gaze"
Field Value
| Type | Description |
|---|---|
| string |
Properties
eyeTrackingRequired
Whether eye tracking hardware is required for this app to install and run.
Controls android:required on the oculus.software.eye_tracking manifest entry.
Declaration
public bool eyeTrackingRequired { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Methods
OnInstanceCreate(ulong)
Called after xrCreateInstance. Override this method to validate that any necessary OpenXR extensions were
successfully enabled (OpenXRRuntime.IsExtensionEnabled)
and that any required system properties are supported. If this method returns false,
the feature's enabled property is set to false.
Declaration
protected override bool OnInstanceCreate(ulong xrInstance)
Parameters
| Type | Name | Description |
|---|---|---|
| ulong | xrInstance | Handle of the native |
Returns
| Type | Description |
|---|---|
| bool | true if this feature successfully initialized. Otherwise, false. |
Overrides
Remarks
If this feature is a required feature of an enabled feature set, returning false here
causes the OpenXRLoader to fail, and XR Plug-in Management will fall back to another loader if enabled.