spine_add_attachment
Add region, mesh, point, bounding box, or path attachments to a Spine slot inside a skin; optionally assign the new attachment to the slot's setup pose.
Instructions
Attach something to a slot inside a skin (registration + optional setup assignment).
Kinds:
region - textured rectangle centered on x/y; needs width/height.
image_pathis the region name inside the images folder/atlas, without extension (defaults to the attachment name; a .png suffix is stripped).mesh - textured mesh; a regular grid centered on x/y is generated from width/height/cols/rows unless explicit uvs/vertices/triangles are given (then list the outline vertices first and pass
hull= their count).point - single point with rotation (projectile/particle spawn).
boundingbox - polygon for hit detection; needs
vertices(x,y pairs).path - curve for spine_add_path_constraint;
verticesare the anchor points (x,y pairs, in the slot bone's space). Smooth handles and the curve lengths are generated.closedmakes a loop;constant_speed(default) keeps bones evenly spaced along it.
Args: assign: Also set this attachment as the slot's setup-pose attachment. skin: Skin to put the attachment in (created if missing).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| uvs | No | ||
| cols | No | ||
| hull | No | ||
| kind | No | region | |
| name | Yes | ||
| rows | No | ||
| skin | No | default | |
| slot | Yes | ||
| color | No | ||
| width | No | ||
| assign | No | ||
| closed | No | ||
| height | No | ||
| project | Yes | ||
| scale_x | No | ||
| scale_y | No | ||
| rotation | No | ||
| vertices | No | ||
| triangles | No | ||
| image_path | No | ||
| constant_speed | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |