mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 17:56:04 +08:00
18 lines
474 B
C#
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);
|
|
}
|
|
}
|