Browse Source

Merge branch 'master' into XRSDK_Phone

胡佳骏 1 year ago
parent
commit
ac6088e86c

+ 4 - 0
Samples~/SDK/Modules/Module_Interaction/ManipulationHandler/Scripts/ManipulationHandler.cs

@@ -23,6 +23,8 @@ namespace SC.XR.Unity.Module_InputSystem
         }
     }
 
+    // [RequireComponent(typeof(NearInterationGrabbable))]
+    //  [RequireComponent(typeof(BoxCollider))]
     public class ManipulationHandler : PointerHandler
     {
 
@@ -59,6 +61,8 @@ namespace SC.XR.Unity.Module_InputSystem
         public float minScaleRatio = 0.8f;
         public float maxScaleRatio = 3f;
 
+
+        public bool isParentDrag;
         public virtual void Start()
         {
             targetStartScale = Target == null ? transform.localScale : Target.localScale;