示例#1
0
 /// <summary>
 /// Performs a raycast using eventData.worldSpaceRay
 /// </summary>
 /// <param name="eventData"></param>
 /// <param name="resultAppendList"></param>
 public override void Raycast(PointerEventData eventData, List <RaycastResult> resultAppendList)
 {
     if (eventData.IsSyncVRPointer())
     {
         Raycast(eventData, resultAppendList, eventData.SyncVRGetRay(), true);
     }
 }
示例#2
0
 public void OnPointerEnter(PointerEventData e)
 {
     if (e.IsSyncVRPointer())
     {
         // Gaze has entered this canvas. We'll make it the active one so that canvas-mouse pointer can be used.
         SyncVRInputModule inputModule = EventSystem.current.currentInputModule as SyncVRInputModule;
         if (inputModule != null)
         {
             inputModule.activeGraphicRaycaster = this;
         }
     }
 }