Fenrisul 444a536dad Importer improvements
Attributes
Multiple atlas support
More examples
2015-01-20 00:08:06 -08:00

18 lines
474 B
C#

using UnityEngine;
using System.Collections;
public class Chimera : MonoBehaviour {
public SkeletonDataAsset skeletonDataSource;
[SpineAttachment(currentSkinOnly: false, returnFullPath: true, dataSource: "skeletonDataSource")]
public string attachmentPath;
[SpineSlot]
public string targetSlot;
void Start() {
GetComponent<SkeletonRenderer>().skeleton.FindSlot(targetSlot).Attachment = SpineAttachment.GetAttachment(attachmentPath, skeletonDataSource);
}
}