Skip to main content

Animation

Provides interfacing with the Animation component.

To get an Animation from an item, use the GetComponent method.

let animationComponent = item.GetComponent("Animation")

You can then use the animationComponent property to access the Dropdown class.

Methods

Method NameReturn TypeParametersDescription
IsValidvoidnoneChecks if the component is not null
PlayvoidstringPlays an animation without blending
StopvoidstringStops all playing animations that were started with this Animation
GetStateAnimStatestringGets the current state of the Animation

Properties

Property NameTypeDescription
EnabledboolChecks the active state of the component