PICO Unity XR SDK
|
Static Public Member Functions | |
static string | GetSDKVersion () |
Gets the SDK version. More... | |
static double | GetPredictedDisplayTime () |
Gets the predicted time a frame will be displayed after being rendered. More... | |
static bool | SetExtraLatencyMode (int mode) |
Sets the extra latency mode. Note: Call this function once only. More... | |
static int | GetSensorStatus () |
Gets the sensor's status. More... | |
static void | SetSystemDisplayFrequency (float rate) |
Sets the system display frequency rate. More... | |
static float | GetSystemDisplayFrequency () |
Gets the system display frequency rate. More... | |
static int | GetPredictedMainSensorStateNew (ref PxrSensorState2 sensorState, ref int sensorFrameIndex) |
Gets the predicted status of the sensor. More... | |
static int | ContentProtect (int data) |
static void | EnableFaceTracking (bool enable) |
Enables/disables face tracking. More... | |
static void | EnableLipSync (bool enable) |
Enables/disables lipsync. More... | |
static void | GetFaceTrackingData (Int64 ts, GetDataType flags, ref PxrFaceTrackingInfo faceTrackingInfo) |
Gets face tracking data. More... | |
static int | SetPerformanceLevels (PxrPerfSettings which, PxrSettingsLevel level) |
Sets a GPU or CPU level for the device. More... | |
static PxrSettingsLevel | GetPerformanceLevels (PxrPerfSettings which) |
Gets the device's GPU or CPU level. More... | |
static int | SetEyeFOV (EyeType eye, float fovLeft, float fovRight, float fovUp, float fovDown) |
Sets FOV in four directions (left, right, up, and down) for specified eye(s). More... | |
static int | SetFaceTrackingStatus (PxrFtLipsyncValue value) |
Switches the face tracking mode. More... | |
|
static |
Gets the SDK version.
|
static |
Gets the predicted time a frame will be displayed after being rendered.
|
static |
Sets the extra latency mode. Note: Call this function once only.
mode | The latency mode:
|
true
: successfalse
: failure
|
static |
Gets the sensor's status.
0
: null1
: 3DoF3
: 6DoF
|
static |
Sets the system display frequency rate.
rate | The frequency rate: 72 ; 90 ; 120 . Other values are invalid. |
|
static |
Gets the system display frequency rate.
|
static |
Gets the predicted status of the sensor.
sensorState | Sensor's coordinate:
|
sensorFrameIndex | Sensor frame index. |
|
static |
Enables/disables face tracking.
enable | Whether to enable/disable face tracking:
|
|
static |
Enables/disables lipsync.
enable | Whether to enable/disable lipsync:
|
|
static |
Gets face tracking data.
ts | (Optional) A reserved parameter, pass 0 . |
flags | The face tracking mode to retrieve data for. Enumertions:
|
faceTrackingInfo | Returns the PxrFaceTrackingInfo struct that contains the following face tracking data:
|
|
static |
Sets a GPU or CPU level for the device.
which | Choose to set a GPU or CPU level:
|
level | Select a level from the following:
|
0
: success1
: failure
|
static |
Gets the device's GPU or CPU level.
which | Choose to get GPU or CPU level:
|
POWER_SAVINGS
: power-saving levelSUSTAINED_LOW
: low levelSUSTAINED_HIGH
: high levelBOOST
: top-high level, be careful to use this level
|
static |
Sets FOV in four directions (left, right, up, and down) for specified eye(s).
eye | The eye to set FOV for:
|
fovLeft | The horizontal FOV (in degrees) for the left part of the eye, for example, 47.5 . |
fovRight | The horizontal FOV (in degrees) for the right part of the eye.. |
fovUp | The vertical FOV (in degrees) for the upper part of the eye. |
fovDown | The vertical FOV (in degrees) for the lower part of the eye. |
0
: success1
: failure
|
static |
Switches the face tracking mode.
value | STOP_FT : to stop the "Face Only" mode. STOP_LIPSYNC : to stop the "Lipsync Only" mode. START_FT : to start the "Face Only" mode. START_LIPSYNC : to start the "Lipsync Only" mode. |
0
: success 1
: failure