Table of Contents

TextureRegion:getRegion

Available since version: Gideros 2012.08.2

Description:

Returns the coordinates of the region.

Syntax:

(number), (number), (number), (number) = TextureRegion:getRegion()

Return value:

  • number: x coordinate from texture
  • number: y coordinate from texture
  • number: width of region
  • number: height of region