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 target GameObject which will be affected by the Audio Reactive Transform.
target = Space.Host.ExecutingObject.AudioReactiveTransform.Target
--clicking this object will toggle between two different Audio Reactive Transform targets thisObject = Space.Host.ExecutingObject target1 = Space.Host.GetReference("theTarget1") --add this reference to Scripting Runtime component target2 = Space.Host.GetReference("theTarget2") --add this reference to Scripting Runtime component function OnClickFunction() if thisObject.AudioReactiveTransform.Target == target1 then thisObject.AudioReactiveTransform.Target = target2 else thisObject.AudioReactiveTransform.Target = target1 end end thisObject.AddClickable() thisObject.Clickable.OnClick(OnClickFunction)
Whether or not the target's position will be affected by the Audio Reactive Transform.
Space.Host.ExecutingObject.AudioReactiveTransform.Position = true
--clicking this object will toggle it's Audio Reactive Transform Position property thisObject = Space.Host.ExecutingObject function OnClickFunction() thisObject.AudioReactiveTransform.Position = not thisObject.AudioReactiveTransform.Position end thisObject.AddClickable() thisObject.Clickable.OnClick(OnClickFunction)
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
Whether or not the target's rotation will be affected by the Audio Reactive Transform.
Space.Host.ExecutingObject.AudioReactiveTransform.Rotation= true
--clicking this object will toggle it's Audio Reactive Transform Rotation property thisObject = Space.Host.ExecutingObject function OnClickFunction() thisObject.AudioReactiveTransform.Rotation= not thisObject.AudioReactiveTransform.Rotation end thisObject.AddClickable() thisObject.Clickable.OnClick(OnClickFunction)
Whether or not the target's rotation will be affected by the Audio Reactive Transform.
Space.Host.ExecutingObject.AudioReactiveTransform.Rotation= true
--clicking this object will toggle it's Audio Reactive Transform Rotation property thisObject = Space.Host.ExecutingObject function OnClickFunction() thisObject.AudioReactiveTransform.Rotation= not thisObject.AudioReactiveTransform.Rotation end thisObject.AddClickable() thisObject.Clickable.OnClick(OnClickFunction)
Whether or not the target's scale will be affected by the Audio Reactive Transform.
Space.Host.ExecutingObject.AudioReactiveTransform.Scale= true
--clicking this object will toggle it's Audio Reactive Transform Scale property thisObject = Space.Host.ExecutingObject function OnClickFunction() thisObject.AudioReactiveTransform.Scale= not thisObject.AudioReactiveTransform.Scale end thisObject.AddClickable() thisObject.Clickable.OnClick(OnClickFunction)
|