Table of Contents

Class AnimationTagBuilder

Namespace
MonoGame.Aseprite
Assembly
MonoGame.Aseprite.dll

Defines a builder building an AnimationTag for a SpriteSheet.

public sealed class AnimationTagBuilder
Inheritance
AnimationTagBuilder
Inherited Members

Methods

AddFrame(int, TimeSpan)

Adds a new frame of animation to the AnimationTag using the TextureRegion located at the specified index in the TextureAtlas of the SpriteSheet and with the specified duration.

AddFrame(string, TimeSpan)

Adds a new frame of animation to the AnimationTag using the TextureRegion with the specified name in the TextureAtlas of the SpriteSheet and with the specified duration.

IsPingPong(bool)

Sets whether the animation should ping-pong once reaching the last frame of animation.

IsReversed(bool)

Sets whether the animation should play in reverse.

LoopCount(int)

Sets the total number of loops/cycles of the animation that should play.