setFrame method

void setFrame(
  1. int frame,
  2. double time,
  3. String attachmentName
)

Sets the time and attachment name for the specified frame.

frame Between 0 and frameCount, inclusive. time The frame time in seconds.

Implementation

void setFrame(int frame, double time, String attachmentName) {
  SpineBindings.bindings
      .spine_attachment_timeline_set_frame(_ptr, frame, time, attachmentName.toNativeUtf8().cast<Char>());
}