diff options
author | chai <chaifix@163.com> | 2021-04-07 21:13:03 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-04-07 21:13:03 +0800 |
commit | d69611d66431e28ea35477c6781a00d57ae04fa3 (patch) | |
tree | c76b3147642a6d1749406f25f2fdacce4ba7a272 /Assets/Test/UIEffect/Program/Editor/MaterialDirtyScope.cs | |
parent | c7e2d8f773baa3955f17402b842eb43329c5f3a0 (diff) |
*因为没有meta,导致missing,删除UIEffect
Diffstat (limited to 'Assets/Test/UIEffect/Program/Editor/MaterialDirtyScope.cs')
-rw-r--r-- | Assets/Test/UIEffect/Program/Editor/MaterialDirtyScope.cs | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/Assets/Test/UIEffect/Program/Editor/MaterialDirtyScope.cs b/Assets/Test/UIEffect/Program/Editor/MaterialDirtyScope.cs deleted file mode 100644 index 435e66e..0000000 --- a/Assets/Test/UIEffect/Program/Editor/MaterialDirtyScope.cs +++ /dev/null @@ -1,33 +0,0 @@ -using System.Linq; -using UnityEditor; -using UnityEngine; - -namespace Coffee.UIEffects.Editors -{ - /// <summary> - /// Changes in this scope cause the graphic's material to be dirty. - /// When you change a property, it marks the material as dirty. - /// </summary> - internal class MaterialDirtyScope : EditorGUI.ChangeCheckScope - { - readonly Object[] targets; - - public MaterialDirtyScope(Object[] targets) - { - this.targets = targets; - } - - protected override void CloseScope() - { - if (changed) - { - foreach (var effect in targets.OfType<BaseMaterialEffect>()) - { - effect.SetMaterialDirty(); - } - } - - base.CloseScope(); - } - } -} |