TextureRegion:setRegion

From GiderosMobile
Revision as of 14:31, 13 July 2023 by Hgy29 (talk | contribs) (Text replacement - "<source" to "<syntaxhighlight")

Available since: Gideros 2012.08.2
Class: TextureRegion

Description

Sets the coordinates of the region. <syntaxhighlight lang="lua"> TextureRegion:setRegion(x,y,width,height) </source>

Parameters

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