Hi there. I am currently optimizing all my particle effects to use a single texture sheet only. Works great so far using the “Texture Sheet Animation” module of the particle systems. However, this only sets the texture of the particle itself, not the particle trail.
I couldn’t find a way to also use a texture sheet for the particle trails yet. Am I missing something?
I was just having a very very quick stab at this. I’m not expecting to find a solution (and haven’t searched for solutions as yet) but quickly knocked up a flipbook shader in Shader Graph just to see if I could figure out a way of doing this.
The bit where I think I’ll run into trouble is figuring out how to sync the flipbook to play with the trails correctly (off-hand I can’t think of a way to do this).
It would be lovely if trail materials could have an option to inherit [or have their own] texture sheet animation settings.
It’s something that would be an incredibly useful feature (although, quite likely, a far from simple to implement).
I’m having the same trouble and because of this I’ll have to copy materials for each trail with different sprites. Was trying to find a way to integrate flipbook node with current sprite assigned to texture sheet module but didn’t get anywhere. If Unity could make everything that’s applicable to particles work on trail particles too, we all would save a lot of time and performance cost. Do you think this’ll be available any time soon?
Sadly no - Unity focuses most particle dev effort on the Visual Effect Graph. We only do bugfixing and very simple quality of life improvements to the Particle System.
We do support it. We just don’t do new feature development work on it.
You can’t modify the engine part of it, but you can extend it in any way you like - you can write your own modules using the C# job system support, for example.
Contrary to my statement above, we actually did make an improvement to the particle trail support very recently for a contractual obligation (there is an exception to every rule!) it now supports vertex streams just like the main particle system particles. This means it’s now possible to solve this desired use case by sending the texture animation frame to the trails shader as a custom stream, and setting the UV’s accordingly. Requires a bit of technical know-how, but at least now it can be done. It’s available in 2022.3 and newer. 2022.3.11f1, to be precise.
A job that operates on all the particles and does “something” with them is equivalent to a custom module.
You could also do it all on the main thread with GetParticles/for loop/SetParticles code, but the links I am providing show more efficient ways to do it.