Constructor Sprite
Sprite(string, TextureRegion)
Initializes a new instance of the Sprite class.
public Sprite(string name, TextureRegion textureRegion)
Parameters
name
stringThe name to assign the Sprite.
textureRegion
TextureRegionThe source TextureRegion to assign the Sprite.
Sprite(string, Texture2D)
Initializes a new instance of the Sprite class.
public Sprite(string name, Texture2D texture)