Keyframe Triggers
Sound Keyframes
To manage sound keyframe callbacks, attach an SoundKeyframeHandler
instance to your AnimationController
using the setSoundKeyframeHandler
method. This handler will be invoked at the specified time defined by the keyframe in the animation JSON.
Example
Particle Keyframes
To handle particle keyframe callbacks, attach an ParticleKeyframeHandler
instance to your AnimationController
using the setParticleKeyframeHandler
method. This handler will be triggered at the specified time defined by the keyframe in the animation JSON.
Example
Custom Instruction Keyframes
Custom instructions help perform actions on your entity unrelated to sound or particles at specific keyframe timings.
To handle custom keyframe callbacks, add an ICustomInstructionListener
instance to your AnimationController
using the setCustomInstructionKeyframeHandler
method. This handler will be triggered at the specified time defined by the keyframe in the animation JSON.
Example
Last updated