Quantcast
Channel: Latest Questions on Unity Answers
Viewing all articles
Browse latest Browse all 171066

Is it possible to change the Frame Over Time property of a ParticleEmitter at runtime?

$
0
0
Hi UnityAnswers Community It seems weird to me that it isn't possible to access the Frame Over Time property of a ParticleEmitter. Am I missing something or simply this property isn't exposed? EDIT: WORKAROUND: Since I needed it to display a symbol picked from a texture sheet, picked a runtime, I decided instead this workaround. I took the material containing the texture of the 8x8 grid of symbols and changed the X and Y tiling to 1/8 (0.125). I assigned the material to the particle system as usual, but unchecked the Tilesheet block. In my script, I recalculate the material offset at runtime, making particular attention to the fact that the offsetting starts at the bottom left, and the Y values are negated (1-actual index*0.125) It's tricky, but in this way I can change the symbol emitted by the particle system at runtime. Not the most straightforward solution, but I hope it helps.

Viewing all articles
Browse latest Browse all 171066

Trending Articles