Difference between revisions of "Sprite:getChildAt"

From GiderosMobile
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
(11 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
 
'''Available since:''' Gideros 2011.6<br/>
 
'''Available since:''' Gideros 2011.6<br/>
 +
'''Class:''' [[Sprite]]<br/>
 +
 
=== Description ===
 
=== Description ===
<br />
+
Returns the child '''Sprite''' instance that exists at the specified index. First child is at index 1.
Returns the child `Sprite` instance that exists at the specified index. First child is at index 1.<br />
+
<syntaxhighlight lang="lua">
<br />
 
<source lang="lua">
 
 
(Sprite) = Sprite:getChildAt(index)
 
(Sprite) = Sprite:getChildAt(index)
</source>
+
</syntaxhighlight>
'''index''': (number) The index position of the child object. ''''''<br/>
+
 
'''Returns''' (Sprite) The child sprite at the specified index position.<br/>
+
=== Parameters ===
 +
'''index''': (number) the index position of the child object<br/>
 +
 
 +
=== Return values ===
 +
'''Returns''' (Sprite) the child sprite at the specified index position<br/>
 +
 
 +
{{Sprite}}

Latest revision as of 15:33, 13 July 2023

Available since: Gideros 2011.6
Class: Sprite

Description

Returns the child Sprite instance that exists at the specified index. First child is at index 1.

(Sprite) = Sprite:getChildAt(index)

Parameters

index: (number) the index position of the child object

Return values

Returns (Sprite) the child sprite at the specified index position