Example #1
0
            public TrackerProps(SerializedObject serializedObject, HumanoidControl_Editor.HumanoidTargetObjs targetObjs, OpenVRHumanoidTracker _steamTracker)
#endif
                : base(serializedObject, targetObjs, _steamTracker, "steam")
            {
                steamTracker = _steamTracker;
                tracker      = steamTracker;
            }
            public TrackerProps(SerializedObject serializedObject, HumanoidControl_Editor.HumanoidTargetObjs targetObjs, WindowsMRTracker _mrTracker)
                : base(serializedObject, targetObjs, _mrTracker, "mixedReality")
            {
                tracker = _mrTracker;

                headSensorProp      = targetObjs.headTargetObj.FindProperty("mixedReality");
                leftHandSensorProp  = targetObjs.leftHandTargetObj.FindProperty("mixedReality");
                rightHandSensorProp = targetObjs.rightHandTargetObj.FindProperty("mixedReality");
            }
Example #3
0
            public TrackerProps(SerializedObject serializedObject, HumanoidControl_Editor.HumanoidTargetObjs targetObjs, OptiTracker _optiTracker)
                : base(serializedObject, targetObjs, _optiTracker, "optitrack")
            {
                optiTracker = _optiTracker;
                tracker     = optiTracker;

                trackingTypeProp = serializedObject.FindProperty("optitrack.trackingType");
                skeletonNameProp = serializedObject.FindProperty("optitrack.skeletonName");
            }
Example #4
0
            public TrackerProps(SerializedObject serializedObject, HumanoidControl_Editor.HumanoidTargetObjs targetObjs, OpenVRHumanoidTracker _openVR)
                : base(serializedObject, targetObjs, _openVR, "openVR")
            {
                tracker = _openVR;

                headSensorProp      = targetObjs.headTargetObj.FindProperty("openVR");
                leftHandSensorProp  = targetObjs.leftHandTargetObj.FindProperty("openVR");
                rightHandSensorProp = targetObjs.rightHandTargetObj.FindProperty("openVR");

#if hVIVETRACKER
                viveTrackerProps = new ViveTracker_Editor.TrackerProps(serializedObject, targetObjs, _openVR);
#endif
            }
Example #5
0
            public TrackerProps(SerializedObject serializedObject, HumanoidControl_Editor.HumanoidTargetObjs targetObjs, SteamVRTracker _steam)
                : base(serializedObject, targetObjs, _steam, "steam")
            {
                tracker = _steam;

                headSensorProp      = targetObjs.headTargetObj.FindProperty("steamVR");
                leftHandSensorProp  = targetObjs.leftHandTargetObj.FindProperty("steamVR");
                rightHandSensorProp = targetObjs.rightHandTargetObj.FindProperty("steamVR");

#if hVIVETRACKER
                viveTrackerProps = new ViveTracker_Editor.TrackerProps(serializedObject, targetObjs, _steam);
#endif
            }
Example #6
0
            public TrackerProps(SerializedObject serializedObject, HumanoidControl_Editor.HumanoidTargetObjs targetObjs, VrtkTracker vrtk)
                : base(serializedObject, targetObjs, vrtk, "vrtk")
            {
                tracker = vrtk;

                leftHandSensorProp  = targetObjs.leftHandTargetObj.FindProperty("vrtk");
                rightHandSensorProp = targetObjs.rightHandTargetObj.FindProperty("vrtk");

                VRTK_SDKManager sdkManager = FindObjectOfType <VRTK_SDKManager>();

                if (sdkManager == null)
                {
                    return;
                }

                vrtk.sdkManager = sdkManager;
            }
Example #7
0
            public TrackerProps(SerializedObject serializedObject, HumanoidControl_Editor.HumanoidTargetObjs targetObjs, OculusTracker _oculus)
                : base(serializedObject, targetObjs, _oculus, "oculus")
            {
                tracker = _oculus;

                headSensorProp      = targetObjs.headTargetObj.FindProperty("oculus");
                leftHandSensorProp  = targetObjs.leftHandTargetObj.FindProperty("oculus");
                rightHandSensorProp = targetObjs.rightHandTargetObj.FindProperty("oculus");

#if UNITY_ANDROID
                deviceTypeProp = serializedObject.FindProperty("oculus.androidDeviceType");

                OculusTracker.AndroidDeviceType androidDeviceType = (OculusTracker.AndroidDeviceType)deviceTypeProp.intValue;
                if (androidDeviceType == OculusTracker.AndroidDeviceType.OculusQuest)
                {
                    CheckQuestManifest();
                }
#endif
            }
 public TrackerProps(SerializedObject serializedObject, HumanoidControl_Editor.HumanoidTargetObjs targetObjs, AstraTracker _tracker)
     : base(serializedObject, targetObjs, _tracker, "astra")
 {
 }
Example #9
0
 public TrackerProps(SerializedObject serializedObject, HumanoidControl_Editor.HumanoidTargetObjs targetObjs, NeuronTracker neuronTracker)
     : base(serializedObject, targetObjs, neuronTracker, "neuronTracker")
 {
 }
 public TrackerProps(SerializedObject serializedObject, HumanoidControl_Editor.HumanoidTargetObjs targetObjs, LeapTracker leapTracker)
     : base(serializedObject, targetObjs, leapTracker, "leapTracker")
 {
     headMountedProp = serializedObject.FindProperty("leapTracker.isHeadMounted");
 }
Example #11
0
 public TrackerProps(SerializedObject serializedObject, HumanoidControl_Editor.HumanoidTargetObjs targetObjs, HydraTracker _hydraTracker)
     : base(serializedObject, targetObjs, _hydraTracker, "hydra")
 {
     //   tracker = _hydraTracker;
 }
Example #12
0
 public TrackerProps(SerializedObject serializedObject, HumanoidControl_Editor.HumanoidTargetObjs targetObjs, Kinect2Tracker kinectTracker)
     : base(serializedObject, targetObjs, kinectTracker, "kinectTracker")
 {
 }
Example #13
0
 public TrackerProps(SerializedObject serializedObject, HumanoidControl_Editor.HumanoidTargetObjs targetObjs, SteamVRTracker _steamTracker)
 public TrackerProps(SerializedObject serializedObject, HumanoidControl_Editor.HumanoidTargetObjs targetObjs, RealsenseTracker realsenseTracker)
     : base(serializedObject, targetObjs, realsenseTracker, "realsenseTracker")
 {
 }
Example #15
0
 public TrackerProps(SerializedObject serializedObject, HumanoidControl_Editor.HumanoidTargetObjs targetObjs, TobiiTracker tobiiTracker)
     : base(serializedObject, targetObjs, tobiiTracker, "tobiiTracker")
 {
 }
Example #16
0
 public TrackerProps(SerializedObject serializedObject, HumanoidControl_Editor.HumanoidTargetObjs targetObjs, Tracker pupil)
     : base(serializedObject, targetObjs, pupil, "pupil")
 {
 }