Fixed for hand tracking
This commit is contained in:
parent
d11396b8bc
commit
16f6d72219
@ -62,6 +62,7 @@ namespace Passer.Humanoid {
|
||||
}
|
||||
|
||||
protected virtual void CheckQuestManifest() {
|
||||
try {
|
||||
string manifestPath = Application.dataPath + "/Plugins/Android/AndroidManifest.xml";
|
||||
FileInfo fileInfo = new FileInfo(manifestPath);
|
||||
fileInfo.Directory.Create();
|
||||
@ -73,7 +74,10 @@ namespace Passer.Humanoid {
|
||||
string questManifestPath = Application.dataPath + humanoidPath + "Extensions/Oculus/QuestManifest.xml";
|
||||
File.Copy(questManifestPath, manifestPath);
|
||||
}
|
||||
|
||||
catch (System.Exception _) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
protected void ViveHandTrackingInspector(HumanoidControl humanoid) {
|
||||
#if hVIVEHAND
|
||||
@ -146,7 +150,7 @@ namespace Passer.Humanoid {
|
||||
public HandTargetProps(SerializedObject serializedObject, HandTarget handTarget)
|
||||
: base(serializedObject, handTarget.unityXR, handTarget, "unityXR") {
|
||||
|
||||
controllerProp = serializedObject.FindProperty("unityXR.controller");
|
||||
controllerProp = serializedObject.FindProperty("unityXR.sensorComponent");
|
||||
}
|
||||
|
||||
public override void Inspector() {
|
||||
|
@ -8,7 +8,7 @@ namespace Passer.Humanoid {
|
||||
#if pUNITYXR
|
||||
public override string name => "Unity XR";
|
||||
|
||||
public override HumanoidTracker tracker => humanoid.unityXR;
|
||||
public new UnityXRTracker tracker => humanoid.unityXR;
|
||||
protected UnityXR unityXR => humanoid.unityXR.trackerComponent as UnityXR;
|
||||
|
||||
#region Manage
|
||||
@ -72,12 +72,12 @@ namespace Passer.Humanoid {
|
||||
SetSensor2Target();
|
||||
|
||||
#if UNITY_ANDROID && hOCHAND
|
||||
if (unityXR.oculusHandTracking)
|
||||
handSkeleton = OculusHandSkeleton.Get(unityXR.trackerComponent.transform, handTarget.isLeft);
|
||||
if (tracker.oculusHandTracking)
|
||||
handSkeleton = OculusHandSkeleton.Get(unityXR.transform, handTarget.isLeft);
|
||||
#endif
|
||||
#if hVIVEHAND
|
||||
if (unityXR.viveHandTracking)
|
||||
handSkeleton = ViveHandSkeleton.Get(unityXR.trackerComponent.transform, handTarget.isLeft);
|
||||
if (tracker.viveHandTracking)
|
||||
handSkeleton = ViveHandSkeleton.Get(unityXR.transform, handTarget.isLeft);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -1,8 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 915fef2fbd335ba4bb0f1d9d5e983783
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Loading…
x
Reference in New Issue
Block a user