wiki.sine.space | sinespace

Scripting/SAudioReactiveAnimation

From wiki.sine.space
Revision as of 03:32, 13 October 2021 by Voidtech (Talk | contribs)

Jump to: navigation, search

Properties

Enabled

bool Enabled {get; set;}

Returns true if the Audio Reactive Animation Enabled.

Space.Host.ExecutingObject.AudioReactiveAnimation.Enabled = false


--clicking this object will Enable/Disable it's Audio Reactive Animation component
thisGameObject = Space.Host.ExecutingObject
component = thisGameObject.AudioReactiveAnimation


OnClick = function()
component.Enabled =  not component.Enabled
end


thisGameObject.AddClickable()
thisGameObject.Clickable.OnClick(OnClick)
)

Parameter

string Parameter {get; set;}

Returns Parameter value of the Audio Reactive Animation.

local Object = Space.Scene.Find("Audio Source")
Space.Log(Object.SAudioReactiveAnimation.Parameter )


Target

SAnimator Target {get; set;}

Returns Target ApplyRootMotion value of the Audio Reactive Animation.

local Object = Space.Scene.Find("Audio Source")
Space.Log(Object.AudioReactiveAnimation.Target.ApplyRootMotion)