diff --git a/Assets/Coffee/UIExtensions/UIEffect/Scripts/UIFlip.cs b/Assets/Coffee/UIExtensions/UIEffect/Scripts/UIFlip.cs index 0e1f350a..abd0beae 100644 --- a/Assets/Coffee/UIExtensions/UIEffect/Scripts/UIFlip.cs +++ b/Assets/Coffee/UIExtensions/UIEffect/Scripts/UIFlip.cs @@ -51,6 +51,8 @@ public bool vertical /// VertexHelper. public override void ModifyMesh(VertexHelper vh) { + if (!isActiveAndEnabled) return; + var vt = default(UIVertex); for (var i = 0; i < vh.currentVertCount; i++) { diff --git a/Assets/Coffee/UIExtensions/UIEffect/Scripts/UIGradient.cs b/Assets/Coffee/UIExtensions/UIEffect/Scripts/UIGradient.cs index 0808c406..f5799023 100755 --- a/Assets/Coffee/UIExtensions/UIEffect/Scripts/UIGradient.cs +++ b/Assets/Coffee/UIExtensions/UIEffect/Scripts/UIGradient.cs @@ -232,7 +232,7 @@ public bool ignoreAspectRatio /// public override void ModifyMesh(VertexHelper vh) { - if (!IsActive()) + if (!isActiveAndEnabled) return; // Gradient space.