Difference between revisions of "TextureRegion:getScale"

From GiderosMobile
m
m (Text replacement - "<source" to "<syntaxhighlight")
Line 5: Line 5:
 
=== Description ===
 
=== Description ===
 
Returns the scale factor of the underlying atlas.
 
Returns the scale factor of the underlying atlas.
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
(number) = TextureRegion:getScale()
 
(number) = TextureRegion:getScale()
 
</source>
 
</source>

Revision as of 15:31, 13 July 2023

Available since: Gideros 2018.6.3
Class: TextureRegion

Description

Returns the scale factor of the underlying atlas. <syntaxhighlight lang="lua"> (number) = TextureRegion:getScale() </source>

Return values

Returns (number) scale