AnimationRuntime
Introduction
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 Animation Tutorials 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.
Code Example - Loading Animations from Gum Project
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 yourGraphicalUiElement
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.
Last updated
Was this helpful?