Table of Contents

Constructor Sprite

Namespace
MonoGame.Aseprite
Assembly
MonoGame.Aseprite.dll

Sprite(string, TextureRegion)

Initializes a new instance of the Sprite class.

public Sprite(string name, TextureRegion textureRegion)

Parameters

name string

The name to assign the Sprite.

textureRegion TextureRegion

The source TextureRegion to assign the Sprite.

Sprite(string, Texture2D)

Initializes a new instance of the Sprite class.

public Sprite(string name, Texture2D texture)

Parameters

name string

The name to assign the Sprite.

texture Texture2D

The source image for the Sprite.