Constructor TextureRegion
TextureRegion(string, Texture2D, Rectangle)
Initializes a new instance of the TextureRegion class.
public TextureRegion(string name, Texture2D texture, Rectangle bounds)
Parameters
name
stringThe name to assign the TextureRegion.
texture
Texture2DThe source texture image this region is from.
bounds
RectangleThe rectangular bounds of this region within the source texture.