protected bool SendUpdateEventForCursorHover()
        {
            CursorHoverEventData data;

            data = new CursorHoverEventData(
                EventSystem.current,
                currentCollisionLocation, current_inputSourceGO.activeInHierarchy);

            ExecuteEvents.Execute(eventSystem.currentSelectedGameObject, data, CursorHoverEventData.cursorFollowDelegate);
            return(data.used);
        }
Ejemplo n.º 2
0
 public void OnHover(CursorHoverEventData cursorData)
 {
     /// only move when we turn on our lazer that is emiting the event query
     if (cursorData.inputSourceActiveState)
     {
         target.transform.position = cursorData.currentHitLocation;
         lastLocalPos = target.transform.localPosition;
     }
     else
     {
         target.transform.localPosition = lastLocalPos;
     }
 }
Ejemplo n.º 3
0
 public void OnHover(CursorHoverEventData cursorData)
 {
     target.transform.position = cursorData.currentHitLocation;
 }