Exemplo n.º 1
0
        public void SetRaycastDirty()
        {
            if (m_RaycastTargetCache != m_RaycastTarget)
            {
                if (m_RaycastTarget && isActiveAndEnabled)
                {
                    GraphicRegistry.RegisterRaycastGraphicForCanvas(canvas, this);
                }

                else if (!m_RaycastTarget)
                {
                    GraphicRegistry.UnregisterRaycastGraphicForCanvas(canvas, this);
                }
            }
            m_RaycastTargetCache = m_RaycastTarget;
        }