spine_skeleton_set_attachment method

void spine_skeleton_set_attachment(
  1. spine_skeleton self,
  2. Pointer<Char> slotName,
  3. Pointer<Char> placeholder
)

A convenience method to set an attachment by finding the slot with findSlot(String), finding the attachment with getAttachment(int, String), then setting the slot's SlotPose::getAttachment().

@param placeholder May be empty.

Implementation

void spine_skeleton_set_attachment(
  spine_skeleton self,
  ffi.Pointer<ffi.Char> slotName,
  ffi.Pointer<ffi.Char> placeholder,
) {
  return _spine_skeleton_set_attachment(
    self,
    slotName,
    placeholder,
  );
}