From d69611d66431e28ea35477c6781a00d57ae04fa3 Mon Sep 17 00:00:00 2001 From: chai Date: Wed, 7 Apr 2021 21:13:03 +0800 Subject: =?UTF-8?q?*=E5=9B=A0=E4=B8=BA=E6=B2=A1=E6=9C=89meta=EF=BC=8C?= =?UTF-8?q?=E5=AF=BC=E8=87=B4missing=EF=BC=8C=E5=88=A0=E9=99=A4UIEffect?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../UIEffect/Program/Editor/MaterialDirtyScope.cs | 33 ---------------------- 1 file changed, 33 deletions(-) delete mode 100644 Assets/Test/UIEffect/Program/Editor/MaterialDirtyScope.cs (limited to 'Assets/Test/UIEffect/Program/Editor/MaterialDirtyScope.cs') 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 -{ - /// - /// Changes in this scope cause the graphic's material to be dirty. - /// When you change a property, it marks the material as dirty. - /// - 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()) - { - effect.SetMaterialDirty(); - } - } - - base.CloseScope(); - } - } -} -- cgit v1.1-26-g67d0