PICO Unity XR SDK
|
Static Public Member Functions | |
static bool | GetSettingState () |
Gets whether hand tracking is enabled or disabled. More... | |
static ActiveInputDevice | GetActiveInputDevice () |
Gets the current active input device. More... | |
static bool | GetAimState (HandType hand, ref HandAimState aimState) |
Gets the data about the pose of a specified hand, including the status of the ray and fingers, the strength of finger pinch and ray touch. More... | |
|
static |
Gets whether hand tracking is enabled or disabled.
true
: enabledfalse
: disabled
|
static |
Gets the current active input device.
HeadActive
: HMDControllerActive
: controllersHandTrackingActive
: hands
|
static |
Gets the data about the pose of a specified hand, including the status of the ray and fingers, the strength of finger pinch and ray touch.
hand | The hand to get data for:
|
aimState | HandAimState contains the data about the poses of ray and fingers. If you use PICO hand prefabs without changing any of their default settings, you will get the following data: public class PXR_Hand
{
// Whether the data is valid.
public bool Computed { get; private set; }
// The ray pose.
public Posef RayPose { get; private set; }
// Whether the ray was displayed.
public bool RayValid { get; private set; }
// Whether the ray touched.
public bool RayTouched { get; private set; }
// The strength of ray touch.
public float TouchStrengthRay { get; private set; }
|
true
: successfalse
: failure