Difference between revisions of "Sprite:getChildAt"

From GiderosMobile
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
(2 intermediate revisions by 2 users not shown)
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 />
+
Returns the child '''Sprite''' instance that exists at the specified index. First child is at index 1.
Returns the child [[Special:MyLanguage/Sprite|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>
=== <translate>Parameters</translate> ===
+
 
'''index''': (number) <translate>The index position of the child object.</translate> <br/>
+
=== Parameters ===
=== <translate>Return values</translate> ===
+
'''index''': (number) the index position of the child object<br/>
'''<translate>Returns</translate>''' (Sprite) <translate>The child sprite at the specified index position.</translate><br/>
+
 
 +
=== Return values ===
 +
'''Returns''' (Sprite) the child sprite at the specified index position<br/>
  
 
{{Sprite}}
 
{{Sprite}}

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