AnimationRuntime
Last updated
Was this helpful?
Last updated
Was this helpful?
AnimationRuntime
is a class containing a list of keyframes (of type KeyframeRuntimeInstance). AnimationRuntime
instances can be used to modify variables on a GraphicalUiElement
over time .
AnimationRuntime instances can be created from animations defined in the Gum tool or by hand in code. For information on how to create an animation in the Gum Tool, see the section.
As of April 2025 animation support at runtime is considered a preview feature and the syntax for working with animations is likely to change in response to community feedback.
Animations defined in the Gum tool can be loaded at runtime. To load and play an animation, the following calls are needed:
Call GumService.LoadAnimations
Obtain an AnimationRuntime
instance from your GraphicalUiElement
Call ApplyAtTimeTo
to apply the animation at runtime.
The following code shows how to load the first screen in a Gum project and how to play its animation.