コード例 #1
0
        public static Vector2 GetSwipeStart(this PointerEventData pointerEventData)
        {
            VRTKPointerEventData vrPointerEventData = pointerEventData as VRTKPointerEventData;

            Assert.IsNotNull(vrPointerEventData);

            return(vrPointerEventData.swipeStart);
        }
コード例 #2
0
        public static void SetSwipeStart(this PointerEventData pointerEventData, Vector2 start)
        {
            VRTKPointerEventData vrPointerEventData = pointerEventData as VRTKPointerEventData;

            Assert.IsNotNull(vrPointerEventData);

            vrPointerEventData.swipeStart = start;
        }
コード例 #3
0
        public static Ray GetRay(this PointerEventData pointerEventData)
        {
            VRTKPointerEventData vrPointerEventData = pointerEventData as VRTKPointerEventData;

            Assert.IsNotNull(vrPointerEventData);

            return(vrPointerEventData.worldSpaceRay);
        }