I'v tried to change Attachment with SkeletonGraphic but it does't work.
my code:
using UnityEngine;
using System.Collections;
using Spine.Unity;
using Spine;
public class testing : MonoBehaviour {
public SkeletonDataAsset skeletonDataSource;
[SpineAttachment(currentSkinOnly: false, returnAttachmentPath: true, dataField: "skeletonDataSource")]
public string attachmentPath;
public string targetSlot;
void Start() {
GetComponent<SkeletonGraphic>().Skeleton.FindSlot(targetSlot).Attachment = SpineAttachment.GetAttachment(attachmentPath, skeletonDataSource);
}
// Update is called once per frame
void Update () {
}
}
Inspector:

Then the result was incorrect :
[attachment=1]UQ38Z`@UY[P[R]W6Z891J8.jpg[/attachment]
the correct result should be like this:
[attachment=0]H6FUIXZ[H89Y1OQ@WU1CH.jpg[/attachment]
So what should I do if I want to get the corret result ?