title: How to disable and enable oculus teleportation (Unity)?
body: <p>Ok my problem is the oculus touchpads use the same grip controls to determine teleportation/aiming and picking up objects. I don't want to change the controls because they're intuitive, but I cant have the teleportation randomly coming up as it does now when they are picking up an object.</p>
  
  <p>There is no disable function in the Oculus standard Locomotion Teleport class, and Ive tried disabling it like this:</p>
  
  <pre><code>private void Update()
      {
  
          locomotionTeleport = GameObject.FindObjectOfType&lt;LocomotionTeleport&gt;();
          // print(GameObject.FindObjectsOfType&lt;OVRGrabber&gt;()[0].isGrabbing || GameObject.FindObjectsOfType&lt;OVRGrabber&gt;()[1].isGrabbing);
          locomotionTeleport.enabled = !(GameObject.FindObjectsOfType&lt;OVRGrabber&gt;()[0].isGrabbing || GameObject.FindObjectsOfType&lt;OVRGrabber&gt;()[1].isGrabbing);
      }
  </code></pre>
  
  <p>Where I track if object is being grabbed in the OVRGrabbers:</p>
  
  <pre><code>void OnTriggerEnter(Collider otherCollider)
      {
          // Get the grab trigger
          OVRGrabbable grabbable = otherCollider.GetComponent&lt;OVRGrabbable&gt;() ?? otherCollider.GetComponentInParent&lt;OVRGrabbable&gt;();
          if (grabbable == null) return;
  
          if(grabbable != null)
          {
              isGrabbing = true;
  
          }
  </code></pre>
  
  <p>But this does nothing. Nothing I try setting bool flags in the teleportation class does anything. How can I prevent teleportation if an object is being picked up, and reenable afterwards?</p>