Skip to content

Commit 6f6a8c9

Browse files
committed
fix: fix v4 compatible components
1 parent fbc697c commit 6f6a8c9

File tree

5 files changed

+28
-28
lines changed

5 files changed

+28
-28
lines changed

Packages/src/Samples~/v4 Compatible Components/Runtime/UIDissolve.cs

+6-6
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public float effectFactor
6666

6767
m_EffectFactor = value;
6868
UpdateContext(context);
69-
ApplyContextToMaterial();
69+
SetMaterialDirty();
7070
}
7171
}
7272

@@ -83,7 +83,7 @@ public float width
8383

8484
m_Width = value;
8585
UpdateContext(context);
86-
ApplyContextToMaterial();
86+
SetMaterialDirty();
8787
}
8888
}
8989

@@ -100,7 +100,7 @@ public float softness
100100

101101
m_Softness = value;
102102
UpdateContext(context);
103-
ApplyContextToMaterial();
103+
SetMaterialDirty();
104104
}
105105
}
106106

@@ -116,7 +116,7 @@ public Color color
116116

117117
m_Color = value;
118118
UpdateContext(context);
119-
ApplyContextToMaterial();
119+
SetMaterialDirty();
120120
}
121121
}
122122

@@ -133,7 +133,7 @@ public Texture transitionTexture
133133
m_TransitionTexture = value;
134134
UpdateContext(context);
135135
SetVerticesDirty();
136-
ApplyContextToMaterial();
136+
SetMaterialDirty();
137137
}
138138
}
139139

@@ -171,7 +171,7 @@ public ColorMode colorMode
171171

172172
m_ColorMode = value;
173173
UpdateContext(context);
174-
ApplyContextToMaterial();
174+
SetMaterialDirty();
175175
}
176176
}
177177

Packages/src/Samples~/v4 Compatible Components/Runtime/UIEffectV4.cs

+6-6
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public float effectFactor
6161

6262
m_EffectFactor = value;
6363
UpdateContext(context);
64-
ApplyContextToMaterial();
64+
SetMaterialDirty();
6565
}
6666
}
6767

@@ -78,7 +78,7 @@ public float colorFactor
7878

7979
m_ColorFactor = value;
8080
UpdateContext(context);
81-
ApplyContextToMaterial();
81+
SetMaterialDirty();
8282
}
8383
}
8484

@@ -95,7 +95,7 @@ public float blurFactor
9595

9696
m_BlurFactor = value;
9797
UpdateContext(context);
98-
ApplyContextToMaterial();
98+
SetMaterialDirty();
9999
}
100100
}
101101

@@ -112,7 +112,7 @@ public EffectMode effectMode
112112
m_EffectMode = value;
113113
UpdateContext(context);
114114
SetVerticesDirty();
115-
ApplyContextToMaterial();
115+
SetMaterialDirty();
116116
}
117117
}
118118

@@ -128,7 +128,7 @@ public ColorMode colorMode
128128

129129
m_ColorMode = value;
130130
UpdateContext(context);
131-
ApplyContextToMaterial();
131+
SetMaterialDirty();
132132
}
133133
}
134134

@@ -145,7 +145,7 @@ public BlurMode blurMode
145145

146146
UpdateContext(context);
147147
SetVerticesDirty();
148-
ApplyContextToMaterial();
148+
SetMaterialDirty();
149149
}
150150
}
151151

Packages/src/Samples~/v4 Compatible Components/Runtime/UIHsvModifier.cs

+5-5
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public Color targetColor
4848

4949
m_TargetColor = value;
5050
UpdateContext(context);
51-
ApplyContextToMaterial();
51+
SetMaterialDirty();
5252
}
5353
}
5454

@@ -65,7 +65,7 @@ public float range
6565

6666
m_Range = value;
6767
UpdateContext(context);
68-
ApplyContextToMaterial();
68+
SetMaterialDirty();
6969
}
7070
}
7171

@@ -82,7 +82,7 @@ public float saturation
8282

8383
m_Saturation = value;
8484
UpdateContext(context);
85-
ApplyContextToMaterial();
85+
SetMaterialDirty();
8686
}
8787
}
8888

@@ -99,7 +99,7 @@ public float value
9999

100100
m_Value = value;
101101
UpdateContext(context);
102-
ApplyContextToMaterial();
102+
SetMaterialDirty();
103103
}
104104
}
105105

@@ -116,7 +116,7 @@ public float hue
116116

117117
m_Hue = value;
118118
UpdateContext(context);
119-
ApplyContextToMaterial();
119+
SetMaterialDirty();
120120
}
121121
}
122122

Packages/src/Samples~/v4 Compatible Components/Runtime/UIShiny.cs

+5-5
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public float effectFactor
5454

5555
m_EffectFactor = value;
5656
UpdateContext(context);
57-
ApplyContextToMaterial();
57+
SetMaterialDirty();
5858
}
5959
}
6060

@@ -71,7 +71,7 @@ public float width
7171

7272
m_Width = value;
7373
UpdateContext(context);
74-
ApplyContextToMaterial();
74+
SetMaterialDirty();
7575
}
7676
}
7777

@@ -88,7 +88,7 @@ public float softness
8888

8989
m_Softness = value;
9090
UpdateContext(context);
91-
ApplyContextToMaterial();
91+
SetMaterialDirty();
9292
}
9393
}
9494

@@ -105,7 +105,7 @@ public float brightness
105105

106106
m_Brightness = value;
107107
UpdateContext(context);
108-
ApplyContextToMaterial();
108+
SetMaterialDirty();
109109
}
110110
}
111111

@@ -122,7 +122,7 @@ public float gloss
122122

123123
m_Gloss = value;
124124
UpdateContext(context);
125-
ApplyContextToMaterial();
125+
SetMaterialDirty();
126126
}
127127
}
128128

Packages/src/Samples~/v4 Compatible Components/Runtime/UITransitionEffect.cs

+6-6
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public float effectFactor
7171

7272
m_EffectFactor = value;
7373
UpdateContext(context);
74-
ApplyContextToMaterial();
74+
SetMaterialDirty();
7575
}
7676
}
7777

@@ -88,7 +88,7 @@ public Texture transitionTexture
8888
m_TransitionTexture = value;
8989
UpdateContext(context);
9090
SetVerticesDirty();
91-
ApplyContextToMaterial();
91+
SetMaterialDirty();
9292
}
9393
}
9494

@@ -104,7 +104,7 @@ public EffectMode effectMode
104104

105105
m_EffectMode = value;
106106
UpdateContext(context);
107-
ApplyContextToMaterial();
107+
SetMaterialDirty();
108108
}
109109
}
110110

@@ -137,7 +137,7 @@ public float dissolveWidth
137137

138138
m_DissolveWidth = value;
139139
UpdateContext(context);
140-
ApplyContextToMaterial();
140+
SetMaterialDirty();
141141
}
142142
}
143143

@@ -154,7 +154,7 @@ public float dissolveSoftness
154154

155155
m_DissolveSoftness = value;
156156
UpdateContext(context);
157-
ApplyContextToMaterial();
157+
SetMaterialDirty();
158158
}
159159
}
160160

@@ -170,7 +170,7 @@ public Color dissolveColor
170170

171171
m_DissolveColor = value;
172172
UpdateContext(context);
173-
ApplyContextToMaterial();
173+
SetMaterialDirty();
174174
}
175175
}
176176

0 commit comments

Comments
 (0)