Hide
SpineAttachmentPicker

Pick a spine attachment from a spine skeleton - skin - slot, into a string field.

Parameters

  • string skeletonTarget = null: the target, either be a SkeletonData, SkeletonRenderer, or component/gameObject with SkeletonRenderer attached. Use GetComponent<SkeletonRenderer>() to the current object if null.
  • string skinTarget = null: If specified, a locally scoped field with the name supplied by in skinTarget will be used to limit the popup results to entries of the named skin
  • string slotTarget = null: If specified, a locally scoped field with the name supplied by in slotTarget will be used to limit the popup results to children of a named slot
  • bool currentSkinOnly = true: Filters results to only include the current Skin. Only valid when a SkeletonRenderer is the data source.
  • bool returnAttachmentPath = false: Returns a fully qualified path for an Attachment in the format "Skin/Slot/AttachmentName". This path format is only used by the SpineAttachment helper methods like SpineAttachment.GetAttachment and .GetHierarchy. Do not use full path anywhere else in Spine's system
  • bool placeholdersOnly = false: Filters results to exclude attachments that are not children of Skin Placeholders
  • bool sepAsSub = true: do not seperate as sub items in the picker.
using SaintsField.Spine; // get on current target [SpineAttachmentPicker] private string spineAttachmentCurrent; // get from other field or callback public SkeletonAnimation _spine; [SpineAttachmentPicker(nameof(_spine))] private string spineAttachment;

image