I had the same issues as some others in this forum: Either Unity was crashing when running a scene with the SRanipal Eye Framework or I got a DllNotFoundException for SRanipal.
For others to be able to use the eye tracking features of their Pro Eye in 2023, I'm sharing my solution:
Tested with Unity 2022.2.3f1 / Unity 2020.3.44f1, VIVE OpenXR Plugin - Windows 1.0.10, SRanipal Runtime 1.3.5.5 and SRanipal SDK 1.3.3.0
The current SRanipal Runtime (1.3.5.5) should already be installed on your PC after completing the PC VR HEADSET SETUP https://www.vive.com/us/setup/pc-vr/
Someone in another thread said you need version 1.3.2.0 to extract eye tracking data. This is not true for me, but you can find the older version here: https://hub.vive.com/en-US/download/
The current SRanipal SDK (1.3.6.8) makes Unity crash. Get version 1.3.3.0 from the archive: https://developer.vive.com/resources/vive-sense/eye-and-facial-tracking-sdk/download/archive/1_3_3_0/
If not done yet, install the XR Plugin Management via Edit > Project Settings > XR Plugin Management.
Add the Vive Package Repository for the Package Manager: Edit > Project Settings > Package Manager > Scoped Registries
Name: VIVE
URL: https://npm-registry.vive.com
Scope(s): com.htc.upm
Open Package Manager, select My Registries in top row and install VIVE OpenXR Plugin - Windows.
A pop-up appears and requests the restart of the editor to enable the new input system. Click Yes and wait for the restart to be completed.
Open XR Plugin Management via Edit > Project Settings > XR Plugin Management.
Activate OpenXR and Vive OpenXR feature group.
Import SRanipal SDK: Assets > Import Package > Custom Package...
Open OpenXR settings via Edit > Project Settings > XR Plugin Management > OpenXR
Unselect Facial Tracking, Hand Tracking and Scene Understanding.
Close and re-open Unity! Without the restart, the DLL won't be found. (Took me hours to figure this out.)
Test if everything works by dragging the SRanipal Eye Framework prefab in your Scene and running the scene.
I followed this tutorial for extracting the eye data and adapted the script to my needs, works perfectly: https://forum.htc.com/topic/9341-vive-eye-tracking-at-120hz/