Difference between revisions of "TextureRegion:getScale"

From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2018.6.3<br/> === Description === <br /> Returns the scale factor of the underlying atlas <br /> <source lang="lua"> (number), = Textu...")
 
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
 
'''Available since:''' Gideros 2018.6.3<br/>
 
'''Available since:''' Gideros 2018.6.3<br/>
 +
'''Class:''' [[TextureRegion]]<br/>
 +
 
=== Description ===
 
=== Description ===
<br />
+
Returns the scale factor of the underlying atlas.
Returns the scale factor of the underlying atlas
+
<syntaxhighlight lang="lua">
<br />
+
(number) = TextureRegion:getScale()
<source lang="lua">
+
</syntaxhighlight>
(number), = TextureRegion:getScale()
+
 
</source>
+
=== Return values ===
 
'''Returns''' (number) scale<br/>
 
'''Returns''' (number) scale<br/>
 +
 +
{{TextureRegion}}

Latest revision as of 14:33, 13 July 2023

Available since: Gideros 2018.6.3
Class: TextureRegion

Description

Returns the scale factor of the underlying atlas.

(number) = TextureRegion:getScale()

Return values

Returns (number) scale