Difference between revisions of "Sprite:getChildAt"

From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2011.6<br/> === Description === <br /> Returns the child `Sprite` instance that exists at the specified index. First child is at index...")
 
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
(12 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 />
+
(Sprite) = Sprite:getChildAt(index)
<source lang="lua">
+
</syntaxhighlight>
(Sprite), = Sprite:getChildAt(index,)
+
 
</source>
+
=== Parameters ===
'''index:''' (number) The index position of the child object. ''''''<br/>
+
'''index''': (number) the index position of the child object<br/>
'''Returns''' (Sprite) The child sprite at the specified index position.<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