Esempio n. 1
0
 void IMixedRealityInputActionHandler.OnActionEnded(BaseInputEventData eventData)
 {
     if (eventData.MixedRealityInputAction == InputAction && !eventData.used && _listening)
     {
         OnInputActionEnded.Invoke(eventData);
         if (MarkEventsAsUsed)
         {
             eventData.Use();
         }
     }
 }
Esempio n. 2
0
 void IMixedRealityInputActionHandler.OnActionStarted(BaseInputEventData eventData)
 {
     if (eventData.MixedRealityInputAction == InputAction && !eventData.used)
     {
         OnInputActionStarted?.Invoke(eventData);
         if (MarkEventsAsUsed)
         {
             eventData.Use();
         }
     }
 }
Esempio n. 3
0
 public void OnActionStarted(BaseInputEventData eventData)
 {
     Debug.Log(eventData);
     cubeTest = GameObject.CreatePrimitive(PrimitiveType.Sphere);
     cubeTest.GetComponent <Renderer>().material.color = Color.yellow;
     cubeTest.transform.SetParent(gameObject.transform, true);
     cubeTest.transform.localScale    = new Vector3(0.5f, 1f, 1f);
     cubeTest.transform.localPosition = new Vector3(0f, 1f, 0f);
     Debug.Log("This is a GLOBAL Position " + cubeTest.transform.position);
     Debug.Log("This is a LOCAL Position" + cubeTest.transform.localPosition);
     eventData.Use();
 }