protected bool SendUpdateEventForCursorHover() { CursorHoverEventData data; data = new CursorHoverEventData( EventSystem.current, currentCollisionLocation, current_inputSourceGO.activeInHierarchy); ExecuteEvents.Execute(eventSystem.currentSelectedGameObject, data, CursorHoverEventData.cursorFollowDelegate); return(data.used); }
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; } }
public void OnHover(CursorHoverEventData cursorData) { target.transform.position = cursorData.currentHitLocation; }