C# Class Spine.Unity.SpineAttachment

Inheritance: SpineAttributeBase
Mostra file Open project: EsotericSoftware/spine-runtimes Class Usage Examples

Public Properties

Property Type Description
currentSkinOnly bool
placeholdersOnly bool
returnAttachmentPath bool
slotField string

Public Methods

Method Description
GetAttachment ( string attachmentPath, SkeletonDataAsset skeletonDataAsset ) : Spine.Attachment
GetAttachment ( string attachmentPath, Spine skeletonData ) : Spine.Attachment
GetHierarchy ( string fullPath ) : SpineAttachment.Hierarchy
SpineAttachment ( bool currentSkinOnly = true, bool returnAttachmentPath = false, bool placeholdersOnly = false, string slotField = "", string dataField = "" ) : UnityEngine

Smart popup menu for Spine Attachments

Method Details

GetAttachment() public static method

public static GetAttachment ( string attachmentPath, SkeletonDataAsset skeletonDataAsset ) : Spine.Attachment
attachmentPath string
skeletonDataAsset SkeletonDataAsset
return Spine.Attachment

GetAttachment() public static method

public static GetAttachment ( string attachmentPath, Spine skeletonData ) : Spine.Attachment
attachmentPath string
skeletonData Spine
return Spine.Attachment

GetHierarchy() public static method

public static GetHierarchy ( string fullPath ) : SpineAttachment.Hierarchy
fullPath string
return SpineAttachment.Hierarchy

SpineAttachment() public method

Smart popup menu for Spine Attachments
public SpineAttachment ( bool currentSkinOnly = true, bool returnAttachmentPath = false, bool placeholdersOnly = false, string slotField = "", string dataField = "" ) : UnityEngine
currentSkinOnly bool Filters popup results to only include the current Skin. Only valid when a SkeletonRenderer is the data source.
returnAttachmentPath bool 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.
placeholdersOnly bool Filters popup results to exclude attachments that are not children of Skin Placeholders
slotField string If specified, a locally scoped field with the name supplied by in slotField will be used to limit the popup results to children of a named slot
dataField string If specified, a locally scoped field with the name supplied by in dataField will be used to fill the popup results. /// Valid types are SkeletonDataAsset and SkeletonRenderer (and derivatives) /// If left empty and the script the attribute is applied to is derived from Component, GetComponent() will be called as a fallback. ///
return UnityEngine

Property Details

currentSkinOnly public_oe property

public bool currentSkinOnly
return bool

placeholdersOnly public_oe property

public bool placeholdersOnly
return bool

returnAttachmentPath public_oe property

public bool returnAttachmentPath
return bool

slotField public_oe property

public string slotField
return string