diff --git a/Packages/src/Samples~/v4 Compatible Components/Runtime/UIDissolve.cs b/Packages/src/Samples~/v4 Compatible Components/Runtime/UIDissolve.cs index 661d33c..3617aaa 100644 --- a/Packages/src/Samples~/v4 Compatible Components/Runtime/UIDissolve.cs +++ b/Packages/src/Samples~/v4 Compatible Components/Runtime/UIDissolve.cs @@ -66,7 +66,7 @@ namespace Coffee.UIEffects m_EffectFactor = value; UpdateContext(context); - ApplyContextToMaterial(); + SetMaterialDirty(); } } @@ -83,7 +83,7 @@ namespace Coffee.UIEffects m_Width = value; UpdateContext(context); - ApplyContextToMaterial(); + SetMaterialDirty(); } } @@ -100,7 +100,7 @@ namespace Coffee.UIEffects m_Softness = value; UpdateContext(context); - ApplyContextToMaterial(); + SetMaterialDirty(); } } @@ -116,7 +116,7 @@ namespace Coffee.UIEffects m_Color = value; UpdateContext(context); - ApplyContextToMaterial(); + SetMaterialDirty(); } } @@ -133,7 +133,7 @@ namespace Coffee.UIEffects m_TransitionTexture = value; UpdateContext(context); SetVerticesDirty(); - ApplyContextToMaterial(); + SetMaterialDirty(); } } @@ -171,7 +171,7 @@ namespace Coffee.UIEffects m_ColorMode = value; UpdateContext(context); - ApplyContextToMaterial(); + SetMaterialDirty(); } } diff --git a/Packages/src/Samples~/v4 Compatible Components/Runtime/UIEffectV4.cs b/Packages/src/Samples~/v4 Compatible Components/Runtime/UIEffectV4.cs index d2674ca..2f538f6 100644 --- a/Packages/src/Samples~/v4 Compatible Components/Runtime/UIEffectV4.cs +++ b/Packages/src/Samples~/v4 Compatible Components/Runtime/UIEffectV4.cs @@ -61,7 +61,7 @@ namespace Coffee.UIEffects m_EffectFactor = value; UpdateContext(context); - ApplyContextToMaterial(); + SetMaterialDirty(); } } @@ -78,7 +78,7 @@ namespace Coffee.UIEffects m_ColorFactor = value; UpdateContext(context); - ApplyContextToMaterial(); + SetMaterialDirty(); } } @@ -95,7 +95,7 @@ namespace Coffee.UIEffects m_BlurFactor = value; UpdateContext(context); - ApplyContextToMaterial(); + SetMaterialDirty(); } } @@ -112,7 +112,7 @@ namespace Coffee.UIEffects m_EffectMode = value; UpdateContext(context); SetVerticesDirty(); - ApplyContextToMaterial(); + SetMaterialDirty(); } } @@ -128,7 +128,7 @@ namespace Coffee.UIEffects m_ColorMode = value; UpdateContext(context); - ApplyContextToMaterial(); + SetMaterialDirty(); } } @@ -145,7 +145,7 @@ namespace Coffee.UIEffects UpdateContext(context); SetVerticesDirty(); - ApplyContextToMaterial(); + SetMaterialDirty(); } } diff --git a/Packages/src/Samples~/v4 Compatible Components/Runtime/UIHsvModifier.cs b/Packages/src/Samples~/v4 Compatible Components/Runtime/UIHsvModifier.cs index d94cf61..faed449 100644 --- a/Packages/src/Samples~/v4 Compatible Components/Runtime/UIHsvModifier.cs +++ b/Packages/src/Samples~/v4 Compatible Components/Runtime/UIHsvModifier.cs @@ -48,7 +48,7 @@ namespace Coffee.UIEffects m_TargetColor = value; UpdateContext(context); - ApplyContextToMaterial(); + SetMaterialDirty(); } } @@ -65,7 +65,7 @@ namespace Coffee.UIEffects m_Range = value; UpdateContext(context); - ApplyContextToMaterial(); + SetMaterialDirty(); } } @@ -82,7 +82,7 @@ namespace Coffee.UIEffects m_Saturation = value; UpdateContext(context); - ApplyContextToMaterial(); + SetMaterialDirty(); } } @@ -99,7 +99,7 @@ namespace Coffee.UIEffects m_Value = value; UpdateContext(context); - ApplyContextToMaterial(); + SetMaterialDirty(); } } @@ -116,7 +116,7 @@ namespace Coffee.UIEffects m_Hue = value; UpdateContext(context); - ApplyContextToMaterial(); + SetMaterialDirty(); } } diff --git a/Packages/src/Samples~/v4 Compatible Components/Runtime/UIShiny.cs b/Packages/src/Samples~/v4 Compatible Components/Runtime/UIShiny.cs index 5f2e37f..937024f 100644 --- a/Packages/src/Samples~/v4 Compatible Components/Runtime/UIShiny.cs +++ b/Packages/src/Samples~/v4 Compatible Components/Runtime/UIShiny.cs @@ -54,7 +54,7 @@ namespace Coffee.UIEffects m_EffectFactor = value; UpdateContext(context); - ApplyContextToMaterial(); + SetMaterialDirty(); } } @@ -71,7 +71,7 @@ namespace Coffee.UIEffects m_Width = value; UpdateContext(context); - ApplyContextToMaterial(); + SetMaterialDirty(); } } @@ -88,7 +88,7 @@ namespace Coffee.UIEffects m_Softness = value; UpdateContext(context); - ApplyContextToMaterial(); + SetMaterialDirty(); } } @@ -105,7 +105,7 @@ namespace Coffee.UIEffects m_Brightness = value; UpdateContext(context); - ApplyContextToMaterial(); + SetMaterialDirty(); } } @@ -122,7 +122,7 @@ namespace Coffee.UIEffects m_Gloss = value; UpdateContext(context); - ApplyContextToMaterial(); + SetMaterialDirty(); } } diff --git a/Packages/src/Samples~/v4 Compatible Components/Runtime/UITransitionEffect.cs b/Packages/src/Samples~/v4 Compatible Components/Runtime/UITransitionEffect.cs index 595d426..09f0aae 100644 --- a/Packages/src/Samples~/v4 Compatible Components/Runtime/UITransitionEffect.cs +++ b/Packages/src/Samples~/v4 Compatible Components/Runtime/UITransitionEffect.cs @@ -71,7 +71,7 @@ namespace Coffee.UIEffects m_EffectFactor = value; UpdateContext(context); - ApplyContextToMaterial(); + SetMaterialDirty(); } } @@ -88,7 +88,7 @@ namespace Coffee.UIEffects m_TransitionTexture = value; UpdateContext(context); SetVerticesDirty(); - ApplyContextToMaterial(); + SetMaterialDirty(); } } @@ -104,7 +104,7 @@ namespace Coffee.UIEffects m_EffectMode = value; UpdateContext(context); - ApplyContextToMaterial(); + SetMaterialDirty(); } } @@ -137,7 +137,7 @@ namespace Coffee.UIEffects m_DissolveWidth = value; UpdateContext(context); - ApplyContextToMaterial(); + SetMaterialDirty(); } } @@ -154,7 +154,7 @@ namespace Coffee.UIEffects m_DissolveSoftness = value; UpdateContext(context); - ApplyContextToMaterial(); + SetMaterialDirty(); } } @@ -170,7 +170,7 @@ namespace Coffee.UIEffects m_DissolveColor = value; UpdateContext(context); - ApplyContextToMaterial(); + SetMaterialDirty(); } }