varollo.asepriteimporter.asepritesheet - Varollo/aseprite-importer GitHub Wiki

< Back


AsepriteSheet

Namespace: Varollo.AsepriteImporter

Object representing a Aseprite sprite sheet data.

public class AsepriteSheet

Inheritance ObjectAsepriteSheet
Attributes DefaultMemberAttribute

Properties

Item

public AsepriteFrame Item { get; }

Property Value

AsepriteFrame

Item

public IEnumerable<AsepriteFrame> Item { get; }

Property Value

IEnumerable<AsepriteFrame>

Frames

Array containing all frames in the sprite sheet.

Represents property "frames" on frame's JSON data.

public AsepriteFrame[] Frames { get; internal set; }

Property Value

AsepriteFrame[]

MetaData

(optional) Meta data about the sprite sheet.

Represents property "meta" on frame's JSON data.

public Nullable<AsepriteMetaData> MetaData { get; internal set; }

Property Value

Nullable<AsepriteMetaData>

FrameCount

Amount of frames in the sprite sheet.

public int FrameCount { get; }

Property Value

Int32

Constructors

AsepriteSheet()

public AsepriteSheet()

Methods

HasAnimation(String)

Checks whether or not an animation, represented by a name, is present in the sprite sheet.

public bool HasAnimation(string name)

Parameters

name String
Key name of the animation, corresponding to AsepriteTagData.Name, or AsepriteFrame.Name

Returns

Boolean
true when animation is present, false when it isn't.


< Back

⚠️ **GitHub.com Fallback** ⚠️