Jump to content

在Unity中进行HTC VIVE pro2 的 眼动追踪,并保存眼动追踪数据及眼动追踪轨迹时所需要的一些脚本代码?

Recommended Posts

Hi @shencaifeiy,

The path is just right above the gif image.

To use the Eye Gaze Interaction profile, add the Eye Gaze Interaction profile in Edit > Project Setting > XR Plug-In Management > OpenXR

Edit is from the toolbar in Unity Editor.


25 minutes ago, shencaifeiy said:


Use the feature through an action map

Link to comment
Share on other sites

You can try our sample first.

Go to Window > Package Manager,



Download VIVE OpenXR Samples.

You will find ActionMap folder under Assets\Samples\VIVE OpenXR Plugin\2.2.0\VIVE OpenXR Samples\Samples\Commons\ActionMap path.

Open InputActions.inputactions then you will see something like the gif image.

You can follow the steps to create new action "eyePose".

  • Like 1
Link to comment
Share on other sites

Hi @shencaifeiy,

It depends on how you want to collect your data.

If you print the data as logs, you could collect your data by using "adb logcat > filename".

If you would like to write into files such as csv, you just pull your files from the headset.

You could refer to below topic for reference.


Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...