Difference between revisions of "SpineSprite:setAttachment"
From GiderosMobile
(Created page with "__NOTOC__ <languages /> '''<translate>Available since</translate>:''' Gideros 2018.12<br/> '''<translate>Class</translate>:''' SpineSprite<br/> ==...") |
|||
Line 6: | Line 6: | ||
<translate>Set attachment</translate> | <translate>Set attachment</translate> | ||
<source lang="lua"> | <source lang="lua"> | ||
− | SpineSprite:setAttachment(attachment) | + | (boolean) = SpineSprite:setAttachment(slot,attachment) |
</source> | </source> | ||
=== <translate>Parameters</translate> === | === <translate>Parameters</translate> === | ||
+ | '''slot''': (string) <translate>Slot name</translate><br/> | ||
'''attachment''': (string) <translate>Attachment name</translate><br/> | '''attachment''': (string) <translate>Attachment name</translate><br/> | ||
+ | |||
+ | === <translate>Return values</translate> === | ||
+ | '''<translate>Returns</translate>''' (boolean) <translate>True if the specified slot was found and attachment was set</translate><br/> |
Revision as of 07:57, 5 December 2018
Available since: Gideros 2018.12
Class: SpineSprite
Description
Set attachment
(boolean) = SpineSprite:setAttachment(slot,attachment)
Parameters
slot: (string) Slot name
attachment: (string) Attachment name
Return values
Returns (boolean) True if the specified slot was found and attachment was set