Set frame of texture in particle2d

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By ondesic

In 3.1, Godot has moved the animated frames for a texture to CanvasItemMaterial. I can set the amount of frames, but would like to set which frame of the texture is showing. Is there a set_particle_frame or something similar that I can use to manually change the particle frame with code?

:bust_in_silhouette: Reply From: ondesic

I’m sad no one knew the answer. I asked in another community and the semi answer to this is the use the offset property. Not very intuitive but for now you can set the frame as follows: if you have 4 frames and want to pick the 3rd frame you can place in the inspector “3/4”.