public static Vector2 GetSwipeStart(this PointerEventData pointerEventData) { VRTKPointerEventData vrPointerEventData = pointerEventData as VRTKPointerEventData; Assert.IsNotNull(vrPointerEventData); return(vrPointerEventData.swipeStart); }
public static void SetSwipeStart(this PointerEventData pointerEventData, Vector2 start) { VRTKPointerEventData vrPointerEventData = pointerEventData as VRTKPointerEventData; Assert.IsNotNull(vrPointerEventData); vrPointerEventData.swipeStart = start; }
public static Ray GetRay(this PointerEventData pointerEventData) { VRTKPointerEventData vrPointerEventData = pointerEventData as VRTKPointerEventData; Assert.IsNotNull(vrPointerEventData); return(vrPointerEventData.worldSpaceRay); }