You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the case where the Play component is remove to pause the animation, I would like to reset the sprite index to 0 (an idle "looking" state). Manually update the Frame?
Also, thanks for the great library!
The text was updated successfully, but these errors were encountered:
Update: looks like the pattern that works is to update the TextureAtlasSprite component of the entity, manually setting its index back to 0 when the Play component is removed.
Yes. I think benimator should expose the animation state component with a pub fn reset(&mut self) method.
Update: looks like the pattern that works is to update the TextureAtlasSprite component of the entity, manually setting its index back to 0 when the Play component is removed.
Mmh. Maybe. I'm kind of surprised that it works actually. I'll investiguate how it behaves (or should behave) in this scenario.
In the case where the
Play
component is remove to pause the animation, I would like to reset the sprite index to 0 (an idle "looking" state). Manually update theFrame
?Also, thanks for the great library!
The text was updated successfully, but these errors were encountered: