Sinespace Client  2023.2.17543
Client-side scripting for Sinespace
SineSpace.Scripting.Types.SAnimationState Class Reference

Properties

bool Enabled [get, set]
 Returns true if current AnimationState is enabled More...
 
float Length [get]
 Returns the length of current animation. More...
 
string Name [get]
 Returns the name of current animation. More...
 
float NormalizedSpeed [get, set]
 Returns the normalized speed of current animation. More...
 
float NormalizedTime [get, set]
 Returns the normalized time of current animation. More...
 
float Speed [get, set]
 Returns the Speed of current animation. More...
 
float Time [get, set]
 Returns the Time of current animation. More...
 
float Weight [get, set]
 Returns the Weight of current animation. More...
 

Property Documentation

◆ Enabled

bool SineSpace.Scripting.Types.SAnimationState.Enabled
getset

Returns true if current AnimationState is enabled

local anim=Space.Host.ExecutingObject.Animation
local state = anim.GetState()
Space.Log(state.Enabled)

◆ Length

float SineSpace.Scripting.Types.SAnimationState.Length
get

Returns the length of current animation.

local anim=Space.Host.ExecutingObject.Animation
local state = anim.GetState()
Space.Log(state.Length)

◆ Name

string SineSpace.Scripting.Types.SAnimationState.Name
get

Returns the name of current animation.

local anim=Space.Host.ExecutingObject.Animation
local state = anim.GetState()
Space.Log(state.Name)

◆ NormalizedSpeed

float SineSpace.Scripting.Types.SAnimationState.NormalizedSpeed
getset

Returns the normalized speed of current animation.

local anim=Space.Host.ExecutingObject.Animation
local state = anim.GetState()
Space.Log(state.NormalizedSpeed)

◆ NormalizedTime

float SineSpace.Scripting.Types.SAnimationState.NormalizedTime
getset

Returns the normalized time of current animation.

local anim=Space.Host.ExecutingObject.Animation
local state = anim.GetState()
Space.Log(state.NormalizedTime)

◆ Speed

float SineSpace.Scripting.Types.SAnimationState.Speed
getset

Returns the Speed of current animation.

local anim=Space.Host.ExecutingObject.Animation
local state = anim.GetState()
Space.Log(state.Speed)

◆ Time

float SineSpace.Scripting.Types.SAnimationState.Time
getset

Returns the Time of current animation.

local anim=Space.Host.ExecutingObject.Animation
local state = anim.GetState()
Space.Log(state.Time)

◆ Weight

float SineSpace.Scripting.Types.SAnimationState.Weight
getset

Returns the Weight of current animation.

local anim=Space.Host.ExecutingObject.Animation
local state = anim.GetState()
Space.Log(state.Weight)