Difference between revisions of "Sprite:setVisible"

From GiderosMobile
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
<languages />
+
'''Available since:''' Gideros 2011.6<br/>
'''<translate>Available since</translate>:''' Gideros 2011.6<br/>
+
'''Class:''' [[Sprite]]<br/>
'''<translate>Class</translate>:''' [[Special:MyLanguage/Sprite|Sprite]]<br/>
+
 
=== <translate>Description</translate> ===
+
=== Description ===
<translate><br />
+
Sets whether or not the sprite is visible.
Sets whether or not the sprite is visible. Sprites that are not visible are also taken<br />
 
into consideration while calculating bounds.<br />
 
<br /></translate>
 
 
<source lang="lua">
 
<source lang="lua">
Sprite:setVisible(visible)
+
Sprite:setVisible(visible)
 
</source>
 
</source>
=== <translate>Parameters</translate> ===
+
 
'''visible''': (bool) <translate>whether or not the sprite is visible</translate> <br/>
+
'''Sprites that are not visible are also taken into consideration while calculating bounds'''
 +
 
 +
=== Parameters ===
 +
'''visible''': (bool) whether or not the sprite is visible<br/>
  
 
{{Sprite}}
 
{{Sprite}}

Revision as of 20:05, 7 February 2023

Available since: Gideros 2011.6
Class: Sprite

Description

Sets whether or not the sprite is visible.

Sprite:setVisible(visible)
Sprites that are not visible are also taken into consideration while calculating bounds

Parameters

visible: (bool) whether or not the sprite is visible