Hi! I’ve spent the past four days trying to find a way to change the particle system’s uv module (texture sheet animation) tiling by script. Everything I’ve found is either deprecated and doesn’t exist or simply doesn’t work. Is this impossible? It seems like it is. I couldn’t find any tutorials official or otherwise.
The only solution I can think of is to have multiple particle systems with tiling information created in the inspector, and switch between them, instead of switching a single particle systems tiling. However I already have multiple for each ability, and I’m changing the material by script, so it would be another multiple week project to get that set up. I really just want to say
.GetComponent().tileY = 4
Ya’know? Thanks so much!!
If you just want to adjust the tiling for all particles, I think the material tiling values should work.
Select the material rendering the particles, then look for Texture / Tiling / Offset values in the Inspector.
Note that this only works if the Shader used by the material is written in the correct way to apply the tiling values.
Thank you!! I’ll try this tonight. I really appreciate the help