Open ggslayer opened 4 years ago
The idea for ActorAnimation.triggerEvents(components, fromTime, toTime, triggerEvents)
is to have the animation give you back a list of all triggered events in a time window that goes from fromTime
to toTime
. All triggered events will be added to triggerEvents
.
More specifically you'd want to call that function once per frame, where
components
array is the list of the components in the artboard (i.e. ActorArtboard.components
)fromTime
is the time of the last frametoTime
is the timem of the current frame
Now process the events in triggerEvents
for that time span.
I see the example code and the flutter sdk code about the trigger event, But i don't understand the componts/fromtime/totime parameter means, Is there any detailed description about the event's usage?