(Created page with "=Properties= {{ScriptFunction|bool|Enabled|{get; set;}|Returns true if the Audio Reactive Particle System Enabled.|5= local Object = Space.Scene.Find("Audio Source")<br> Spa...") |
|||
Line 4: | Line 4: | ||
local Object = Space.Scene.Find("Audio Source")<br> | local Object = Space.Scene.Find("Audio Source")<br> | ||
Space.Log(Object.AudioReactiveParticleSystem.Enabled)<br> | Space.Log(Object.AudioReactiveParticleSystem.Enabled)<br> | ||
− | ''-- print true.'' | + | ''-- print true.''|6=<pre>--clicking this object will Enable/Disable it's Audio Reactive Particle System component |
+ | thisGameObject = Space.Host.ExecutingObject | ||
+ | component = thisGameObject.AudioReactiveParticleSystem | ||
+ | |||
+ | |||
+ | OnClick = function() | ||
+ | component.Enabled = not component.Enabled | ||
+ | end | ||
+ | |||
+ | |||
+ | thisGameObject.AddClickable() | ||
+ | thisGameObject.Clickable.OnClick(OnClick)</pre> | ||
}} | }} | ||
Returns true if the Audio Reactive Particle System Enabled.
Space.Log(Object.AudioReactiveParticleSystem.Enabled)
--clicking this object will Enable/Disable it's Audio Reactive Particle System component thisGameObject = Space.Host.ExecutingObject component = thisGameObject.AudioReactiveParticleSystem OnClick = function() component.Enabled = not component.Enabled end thisGameObject.AddClickable() thisGameObject.Clickable.OnClick(OnClick)
Returns the instance id of the object.
Returns Position value of the Audio Reactive Particle System.
Returns MinPosition value of the Audio Reactive Particle System.
local Vectordata = Object.AudioReactiveParticleSystem.MinPosition
Returns MaxPosition value of the Audio Reactive Particle System.
local Vectordata = Object.AudioReactiveParticleSystem.MaxPosition
Returns MinRotation value of the Audio Reactive Particle System.
local Vectordata = Object.AudioReactiveParticleSystem.MinRotation
Returns MaxRotation value of the Audio Reactive Particle System.
local Vectordata = Object.AudioReactiveParticleSystem.MaxRotation
Returns MinScale value of the Audio Reactive Particle System.
local Vectordata = Object.AudioReactiveParticleSystem.MinScale
Returns MaxScale value of the Audio Reactive Particle System.
local Vectordata = Object.AudioReactiveParticleSystem.MaxScale
Returns Rotation value of the Audio Reactive Particle System.
Returns Scale value of the Audio Reactive Particle System.
|