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