fungus-spine is not good at all
but it could be amazing when i can using fungus only to
control the skin with my script
I fix some features from this video pretty good as i want
now i wish it could be controllable in fungus as easy as possible
fungus-spine is not good at all
but it could be amazing when i can using fungus only to
control the skin with my script
I fix some features from this video pretty good as i want
now i wish it could be controllable in fungus as easy as possible
It seems you are looking to integrate Spine animations with Fungus, a Unity plugin for creating narrative games. While there isn't specific information in the provided contexts about using Fungus with Spine, you can control Spine animations through scripting in Unity. This involves using the Spine-Unity runtime to manipulate animations and skins programmatically. You can create custom scripts to handle these interactions and potentially integrate them with Fungus's event system to trigger animations based on game events. This approach allows you to leverage the strengths of both Spine and Fungus for your project.
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
rmx i put this script component on skeletonmecanim gameobject and here's what happen
This screenshot only shows the string array content of combinedSkins
of your SpineTest
component. Everything looks as expected there.
rmx i can choose and mix those multiple skins easly but i wish i can control on fungus command to change skin while talking system
We are not familiar with said thirdparty Fungus toolset. As Spinebot mentioned, you would need to write glue-code to trigger the respective spine-unity code which performs skin changes when receiving Fungus events.