You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Animation clips can change the material properties of the Renderer, such as ParticleSystemRenderer.
135
+
It uses MaterialPropertyBlock so it does not create new material instances.
136
+
Using material properties, you can change UV animation, scale and color etc.
137
+
138
+
Well, there is a component called CanvasRenderer.
139
+
It is used by all Graphic components for UI (Text, Image, Raw Image, etc.) including UIParticle.
140
+
However, It is **NOT** a Renderer.
141
+
Therefore, in UIParticle, changing ParticleSystemRenderer's MaterialPropertyBlock by animation clip is ignored.
142
+
143
+
To prevent this, Use "Animatable Material Property".
144
+
"Animatable Material Property" gets the necessary properties from ParticleSystemRenderer's MaterialPropertyBlock and sets them to the CanvasRenderer's material.
Copy file name to clipboardExpand all lines: package.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
"name": "com.coffee.ui-particle",
3
3
"displayName": "UI Particle",
4
4
"description": "This plugin provide a component to render particle effect for uGUI.\nThe particle rendering is maskable and sortable, without Camera, RenderTexture or Canvas.",
0 commit comments