Table of Contents

Available since version: Gideros 2011.6


Creates a new TextureRegion object.
<li>If TextureRegion object is created with 1 parameter (texture), it specifies the whole texture.</li>
<li>If TextureRegion object is created with 5 parameters (texture, x, y, width, height), if specifies a rectangular region within texture.</li>

Syntax:, x, y, width, height)


  • texture: (TextureBase) texture object
  • x: (number) left coordinate of the region
  • y: (number) top coordinate of the region
  • width: (number) width of the region
  • height: (number) height of the region