Difference between revisions of "Sprite:isVisible"

From GiderosMobile
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
(8 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
'''<translate>Available since</translate>:''' Gideros 2011.6<br/>
+
'''Available since:''' Gideros 2011.6<br/>
=== <translate>Description</translate> ===
+
'''Class:''' [[Sprite]]<br/>
<translate><br />
+
 
Returns whether or not the sprite is visible. Child sprites that are not visible are also taken<br />
+
=== Description ===
into consideration while calculating bounds.<br />
+
Returns whether or not the sprite is visible. Child sprites that are not visible are also taken into consideration while calculating bounds.
<br /></translate>
+
<syntaxhighlight lang="lua">
<source lang="lua">
+
(bool) = Sprite:isVisible([checkParent])
(bool) = Sprite:isVisible()
+
</syntaxhighlight>
</source>
+
 
=== <translate>Return values</translate> ===
+
=== Parameters ===
'''<translate>Returns</translate>''' (bool) <translate>A value of [[Special:MyLanguage/true|true]] if sprite is visible; [[Special:MyLanguage/false|false]] otherwise.</translate><br/>
+
'''checkParent''': (bool) flag to check parent visibility '''(optional: default = false)'''<br/>
 +
 
 +
=== Return values ===
 +
'''Returns''' (bool) a value of ''true'' if sprite is visible, ''false'' otherwise<br/>
 +
 
 +
{{Sprite}}

Latest revision as of 15:33, 13 July 2023

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([checkParent])

Parameters

checkParent: (bool) flag to check parent visibility (optional: default = false)

Return values

Returns (bool) a value of true if sprite is visible, false otherwise