Ejemplo n.º 1
0
        public static Vector2 GetSwipeStart(this PointerEventData pointerEventData)
        {
            GCSeriesPointerEventData vrPointerEventData = pointerEventData as GCSeriesPointerEventData;

            Assert.IsNotNull(vrPointerEventData);

            return(vrPointerEventData.swipeStart);
        }
Ejemplo n.º 2
0
        public static void SetSwipeStart(this PointerEventData pointerEventData, Vector2 start)
        {
            GCSeriesPointerEventData vrPointerEventData = pointerEventData as GCSeriesPointerEventData;

            Assert.IsNotNull(vrPointerEventData);

            vrPointerEventData.swipeStart = start;
        }
Ejemplo n.º 3
0
        public static Ray GetRay(this PointerEventData pointerEventData)
        {
            GCSeriesPointerEventData vrPointerEventData = pointerEventData as GCSeriesPointerEventData;

            Assert.IsNotNull(vrPointerEventData);

            return(vrPointerEventData.worldSpaceRay);
        }
        protected bool GetPointerData(int id, out GCSeriesPointerEventData data, bool create)
        {
            if (!m_VRRayPointerData.TryGetValue(id, out data) && create)
            {
                data = new GCSeriesPointerEventData(eventSystem)
                {
                    pointerId = id,
                };

                m_VRRayPointerData.Add(id, data);
                return(true);
            }
            return(false);
        }