Ejemplo n.º 1
0
        protected virtual void LateUpdate()
        {
            var rectTransformHashCode = HashUtility.GetValueHashCode(rectTransform);

            if (lastRectTransformHashCode != rectTransformHashCode)
            {
                lastRectTransformHashCode = rectTransformHashCode;

                SetVerticesDirty();
                foreach (var effect in GetComponentsInChildren <SoftMaskMeshEffect>())
                {
                    effect.SetVerticesDirty();
                }
            }
        }
        protected virtual void LateUpdate()
        {
            var rectTransformHashCode = HashUtility.GetValueHashCode(rectTransform);

            if (lastRectTransformHashCode != rectTransformHashCode)
            {
                lastRectTransformHashCode = rectTransformHashCode;

                m_orientedRect2D = null;
                var verticesDirty = softMaskRect.orientedRect2D.Overlaps(orientedRect2D);
                if (verticesDirty || lastVerticesDirty)
                {
                    SetVerticesDirty();
                }
                lastVerticesDirty = verticesDirty;
            }
        }