setAttachment method

void setAttachment(
  1. String slotName,
  2. String attachmentName
)

attachmentName May be empty.

Implementation

void setAttachment(String slotName, String attachmentName) {
  SpineBindings.bindings.spine_skeleton_set_attachment(
      _ptr, slotName.toNativeUtf8().cast<Char>(), attachmentName.toNativeUtf8().cast<Char>());
}