Hello,
I'm not sure if this is a bug or if this is by design.
Basically, if I want an Event Trigger to send a String, I have to make sure that the Event Trigger has a "Default" string set in Setup mode(it can be a dummy string, it just needs to be there). If it doesn't and if I set a String on a keyframe using that particular Event, my keyframe event will not be exported in the Json file.
Here are the steps :
- Select a Skeleton
- Create an Event in Setup mode, give it a name, but do not enter any String in the String field
- Select an animation, enter the Animation mode
- Set a Keyframe for that Event, enter a String to send
- Check you Json file, the event will not show for that keyframe
In the example below, the Events "jump, land, spin" do not have a default String set in Setup mode. So on export, you'll get this and the Trigger for these will not be exported:
"events": {
"footstep_L": { "string": "Toe_L" },
"footstep_R": { "string": "Toe_L" },
"jump": {},
"land": {},
"spin": {}
},
Is it intended ?
Thanks !
ben