Animation.apply
is for when you want to apply a certain time of the animation to your skeleton. time
is that time in seconds.
But it also happens to be the method that captures user events you keyed in Spine (the purple keys).
Animation.apply only captures events that are keyed between lastTime
and time
.
This is also currently true for attachment keys unless you disabled that behavior.
The captured events are added to the events parameter (which should be some kind of list or array object).
If that parameter is null, it will not capture any events.