Table of Contents

Method CreateAnimationTag

Namespace
MonoGame.Aseprite
Assembly
MonoGame.Aseprite.dll

CreateAnimationTag(string, Action<AnimationTagBuilder>)

Creates a new AnimationTag and adds it to this SpriteSheet.

public AnimationTag CreateAnimationTag(string name, Action<AnimationTagBuilder> builder)

Parameters

name string

The name to assign the AnimationTag that is created by this method. This name must be unique across all AnimationTag elements defined in this SpriteSheet.

builder Action<AnimationTagBuilder>

An Action method used to build the AnimationTag with an AnimationTagBuilder.

Returns

AnimationTag

The AnimationTag that is created by this method.

Exceptions

InvalidOperationException

Thrown if this SpriteSheet already contains an AnimationTag element with the name specified.