yun123 To get the name of an Event key and its Int, Float, and String values, you can write it like this (assuming you attach a C# script to a SpineSprite):
using Godot;
using System;
public partial class YourSpineSpriteScript : SpineSprite {
public override void _Ready()
{
var animationState = GetAnimationState();
animationState.SetAnimation("YourAnimation", true, 0);
AnimationEvent += (sprite, animationState, trackEntry, eventObject) =>
{
var spineEvent = eventObject as SpineEvent;
GD.Print("Animation event: " + spineEvent.GetData().GetEventName() + " String: " + spineEvent.GetStringValue() + " Int: " + spineEvent.GetFloatValue() + " Float: " + spineEvent.GetFloatValue());
};
}
}
By the way, when posting code, please use three backticks (```) to create a code block instead of screenshots. Doing so makes it easier for us to debug and respond quickly.