Difference between revisions of "SpineSprite:setAttachment"
From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight") |
|||
Line 5: | Line 5: | ||
=== <translate>Description</translate> === | === <translate>Description</translate> === | ||
<translate>Set attachment</translate> | <translate>Set attachment</translate> | ||
− | < | + | <syntaxhighlight lang="lua"> |
(boolean) = SpineSprite:setAttachment(slot,attachment) | (boolean) = SpineSprite:setAttachment(slot,attachment) | ||
</source> | </source> |
Revision as of 14:31, 13 July 2023
Available since: Gideros 2018.12
Class: SpineSprite
Description
Set attachment <syntaxhighlight lang="lua"> (boolean) = SpineSprite:setAttachment(slot,attachment) </source>
Parameters
slot: (string) Slot name
attachment: (string) Attachment name
Return values
Returns (boolean) True if the specified slot was found and attachment was set