public static Vector2 GetSwipeStart(this PointerEventData pointerEventData)
        {
            GCSeriesPointerEventData vrPointerEventData = pointerEventData as GCSeriesPointerEventData;

            Assert.IsNotNull(vrPointerEventData);

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

            Assert.IsNotNull(vrPointerEventData);

            vrPointerEventData.swipeStart = start;
        }
        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);
        }