Sprite:getChildAt: Difference between revisions

From GiderosMobile
No edit summary
m Text replacement - "</source>" to "</syntaxhighlight>"
 
(9 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 ===
<translate><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 /></translate>
<source lang="lua">
(Sprite) = Sprite:getChildAt(index)
(Sprite) = Sprite:getChildAt(index)
</source>
</syntaxhighlight>
 
=== Parameters ===
=== Parameters ===
'''index''': (number) <translate>The index position of the child object.</translate> <br/>
'''index''': (number) the index position of the child object<br/>
 
=== Return values ===
=== Return values ===
'''Returns''' (Sprite) <translate>The child sprite at the specified index position.</translate><br/>
'''Returns''' (Sprite) the child sprite at the specified index position<br/>
 
{{Sprite}}

Latest revision as of 13: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