more info: this is the script i got
using UnityEngine;
using Spine;
using Spine.Unity;
public class SpineTest : MonoBehaviour
{
[SpineSkin]
public string[] combinedSkins = { }; // Serializable
[SpineAnimation]
private SkeletonMecanim spineObject; // SkeletonMecanim으로 변경
private Skin combinedSkin;
void Start()
{
spineObject = this.GetComponent<SkeletonMecanim>(); // SkeletonMecanim을 가져옴
combinedSkin = new Skin("combinedSkin");
CombineAndSetSkins();
}
private void OnValidate()
{
combinedSkin = new Skin("combinedSkin");
CombineAndSetSkins();
}
public void CombineAndSetSkins()
{
if (spineObject != null && combinedSkin != null)
{
for (int i = 0; i < combinedSkins.Length; i++)
{
var skinName = combinedSkins[i];
combinedSkin.AddSkin(spineObject.Skeleton.Data.FindSkin(skinName));
}
spineObject.Skeleton.SetSkin(combinedSkin);
spineObject.Skeleton.SetSlotsToSetupPose();
}
}
void Update()
{
}
}
i put this script component on skeletonmecanim gameobject and here's what happen
i can choose and mix those multiple skins easly but i wish i can control on fungus command to change skin while talking system