Great, thanks for the quick solution! 👍️
Btw, I think I could have found another issue.
On spine-flutter the setListener(AnimationStateListener? listener)
on TrackEntry
is not working for me. For example when running the example-project and AnimationStateEvents class I don't get any output from the setListeners. I.e.:
controller.animationState.setAnimationByName(0, "walk", true).setListener((type, trackEntry, event) {
print("Walk animation event $type");
});
controller.animationState.addAnimationByName(0, "jump", false, 2);
controller.animationState.addAnimationByName(0, "run", true, 0).setListener((type, trackEntry, event) {
print("Run animation event $type");
});
I.e. it never logs "Walk animation event $type" or "Run animation event $type", but the listener on AnimationState
in the same method gets called. I.e.:
controller.animationState.setListener((type, trackEntry, event) {
if (type == EventType.event) {
print(
"User event: { name: ${event?.getData().getName()}, intValue: ${event?.getIntValue()}, floatValue: intValue: ${event?.getFloatValue()}, stringValue: ${event?.getStringValue()} }");
}
});
(I'm running to Chrome).