Table of Contents

TextureRegion:getRegion

Available since version: Gideros 2012.08.2

Description:

Returns the coordinates of the region.
If transparent areas were trimmed during texture pack export, also reports the amount trimmed.

Syntax:

(number), (number), (number), (number), (number), (number), (number), (number) = TextureRegion:getRegion([baseCoordiniates])

Parameters:

  • baseCoordiniates: (boolean) Returns values in base (@1) size

Return value:

  • number: x coordinate from texture
  • number: y coordinate from texture
  • number: width of region
  • number: height of region
  • number: left trim
  • number: top trim
  • number: right trim
  • number: bottom trim