- Home /
How to change the sprite in "texture sheet animation" from three different sprites?
I tried using particleSystem.textureSheetAnimation.SetSprite()
but that led to nothing.
Answer by fblast1 · May 06, 2020 at 03:02 AM
set sprite sets a sprite slot in that sheet but in runtime instead of the editor
if you want to scroll between them check the cycles and start frame
Regards
Refer to this https://docs.unity3d.com/$$anonymous$$anual/PartSysTexSheetAnim$$anonymous$$odule.html It contains each property with a description and this for a sample adding a sprite at runtime https://docs.unity3d.com/ScriptReference/ParticleSystemAnimation$$anonymous$$ode.Sprites.html
Regards
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
Optimize the code (Array Unity) 1 Answer
How to increase max particles in a particle system against a timer? 0 Answers