(Created page with "=Properties= {{ScriptFunction|bool|Enabled|[get, set]|Return true if the Audio Reactive Transform Enabled.|5=local Object = Space.Scene.Find("Audio Source")<br> Space.Log(Obj...") |
|||
Line 2: | Line 2: | ||
{{ScriptFunction|bool|Enabled|[get, set]|Return true if the Audio Reactive Transform Enabled.|5=local Object = Space.Scene.Find("Audio Source")<br> | {{ScriptFunction|bool|Enabled|[get, set]|Return true if the Audio Reactive Transform Enabled.|5=local Object = Space.Scene.Find("Audio Source")<br> | ||
− | Space.Log(Object.AudioReactiveTransform.Enabled) | + | Space.Log(Object.AudioReactiveTransform.Enabled)|6=<pre>--clicking this object will Enable/Disable it's Audio Reactive Transform component |
+ | thisGameObject = Space.Host.ExecutingObject | ||
+ | component = thisGameObject.AudioReactiveTransform | ||
+ | |||
+ | |||
+ | OnClick = function() | ||
+ | component.Enabled = not component.Enabled | ||
+ | end | ||
+ | |||
+ | |||
+ | thisGameObject.AddClickable() | ||
+ | thisGameObject.Clickable.OnClick(OnClick)</pre> | ||
}} | }} | ||
Return true if the Audio Reactive Transform Enabled.
--clicking this object will Enable/Disable it's Audio Reactive Transform component thisGameObject = Space.Host.ExecutingObject component = thisGameObject.AudioReactiveTransform OnClick = function() component.Enabled = not component.Enabled end thisGameObject.AddClickable() thisGameObject.Clickable.OnClick(OnClick)
The Transform attached to this GameObject.
Returns Position value of the Audio Reactive Transform.
Returns MinPosition value of the Audio Reactive Transform.
local Vectordata = Object.AudioReactiveTransform.Position
Returns MaxPosition value of the Audio Reactive Transform.
local Vectordata = Object.AudioReactiveTransform.MaxPosition
Returns MinRotation value of the Audio Reactive Transform.
local Vectordata = Object.AudioReactiveTransform.MinRotation
Returns MaxRotation value of the Audio Reactive Transform.
local Vectordata = Object.AudioReactiveTransform.MaxRotation
Returns MinScale value of the Audio Reactive Transform.
local Vectordata = Object.AudioReactiveTransform.MinScale
Returns MaxScale value of the Audio Reactive Transform.
local Vectordata = Object.AudioReactiveTransform.MaxScale
Returns Rotation value of the Audio Reactive Transform.
|