Difference between revisions of "Sprite:isVisible"

From GiderosMobile
Line 9: Line 9:
 
<br /></translate>
 
<br /></translate>
 
<source lang="lua">
 
<source lang="lua">
(bool) = Sprite:isVisible()
+
(bool) = Sprite:isVisible([checkParents])
 
</source>
 
</source>
 +
=== <translate>Parameters</translate> ===
 +
'''checkParents''': (bool) <translate>flag to check parents visibility</translate> <br/>
 
=== <translate>Return values</translate> ===
 
=== <translate>Return values</translate> ===
 
'''<translate>Returns</translate>''' (bool) <translate>A value of ''true'' if sprite is visible; ''false'' otherwise.</translate><br/>
 
'''<translate>Returns</translate>''' (bool) <translate>A value of ''true'' if sprite is visible; ''false'' otherwise.</translate><br/>
  
 
{{Sprite}}
 
{{Sprite}}

Revision as of 07:58, 22 September 2021


Available since: Gideros 2011.6
Class: Sprite

Description


Returns whether or not the sprite is visible. Child sprites that are not visible are also taken
into consideration while calculating bounds.

(bool) = Sprite:isVisible([checkParents])

Parameters

checkParents: (bool) flag to check parents visibility

Return values

Returns (bool) A value of true if sprite is visible; false otherwise.