Thank. I will read it.
Thank. The problem has been resolved.
using Spine.Unity;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class AnimState : StateMachineBehaviour
{
public string animationName;
public string skinName;
public float speed;
override public void OnStateEnter(Animator animator, AnimatorStateInfo stateInfo, int LayerIndex)
{
SkeletonAnimation anim = animator.GetComponent<SkeletonAnimation>();
anim.initialSkinName = skinName;
anim.Initialize(true);
anim.state.SetAnimation(0, animationName, true).TimeScale = speed;
}
}