|
|
Line 1: |
Line 1: |
− | =Properties=
| + | This page has moved to: https://docs.sine.space/v/scripting/client-scripting/components/saudioreactiveparticlesystem |
− | | + | |
− | {{ScriptFunction|bool|Enabled|{get; set;}|Returns true if the Audio Reactive Particle System Enabled.|5=
| + | |
− | local Object = Space.Scene.Find("Audio Source")<br>
| + | |
− | Space.Log(Object.AudioReactiveParticleSystem.Enabled)<br>
| + | |
− | ''-- 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>
| + | |
− | }}
| + | |
− | | + | |
− | {{ScriptFunction|SGameObject|Target|{get; set;}|Returns the instance id of the object.|5=
| + | |
− | local Object = Space.Scene.Find("Audio Source")<br>
| + | |
− | Space.Log(Object.AudioReactiveParticleSystem.Target.LocalID)
| + | |
− | }}
| + | |
− | | + | |
− | {{ScriptFunction|bool|Position|{get; set;}|Returns Position value of the Audio Reactive Particle System.|5=
| + | |
− | local Object = Space.Scene.Find("Audio Source")<br>
| + | |
− | Space.Log(Object.AudioReactiveParticleSystem.Position)
| + | |
− | }}
| + | |
− | | + | |
− | {{ScriptFunction|SVector|MinPosition|{get; set;}|Returns MinPosition value of the Audio Reactive Particle System.|5=
| + | |
− | local Object = Space.Scene.Find("Audio Source")<br>
| + | |
− | local Vectordata = Object.AudioReactiveParticleSystem.MinPosition<br>
| + | |
− | Space.Log(Vectordata)
| + | |
− | }}
| + | |
− | | + | |
− | {{ScriptFunction|SVector|MaxPosition|{get; set;}|Returns MaxPosition value of the Audio Reactive Particle System.|5=
| + | |
− | local Object = Space.Scene.Find("Audio Source")<br>
| + | |
− | local Vectordata = Object.AudioReactiveParticleSystem.MaxPosition<br>
| + | |
− | Space.Log(Vectordata)
| + | |
− | }}
| + | |
− | | + | |
− | {{ScriptFunction|SVector|MinRotation|{get; set;}|Returns MinRotation value of the Audio Reactive Particle System.|5=
| + | |
− | local Object = Space.Scene.Find("Audio Source")<br>
| + | |
− | local Vectordata = Object.AudioReactiveParticleSystem.MinRotation<br>
| + | |
− | Space.Log(Vectordata)
| + | |
− | }}
| + | |
− | | + | |
− | {{ScriptFunction|SVector|MaxRotation|{get; set;}|Returns MaxRotation value of the Audio Reactive Particle System.|5=
| + | |
− | local Object = Space.Scene.Find("Audio Source")<br>
| + | |
− | local Vectordata = Object.AudioReactiveParticleSystem.MaxRotation<br>
| + | |
− | Space.Log(Vectordata)
| + | |
− | }}
| + | |
− | | + | |
− | {{ScriptFunction|SVector|MinScale|{get; set;}|Returns MinScale value of the Audio Reactive Particle System.|5=
| + | |
− | local Object = Space.Scene.Find("Audio Source")<br>
| + | |
− | local Vectordata = Object.AudioReactiveParticleSystem.MinScale<br>
| + | |
− | Space.Log(Vectordata)
| + | |
− | }}
| + | |
− | | + | |
− | {{ScriptFunction|SVector|MaxScale|{get; set;}|Returns MaxScale value of the Audio Reactive Particle System.|5=
| + | |
− | local Object = Space.Scene.Find("Audio Source")<br>
| + | |
− | local Vectordata = Object.AudioReactiveParticleSystem.MaxScale<br>
| + | |
− | Space.Log(Vectordata)
| + | |
− | }}
| + | |
− | | + | |
− | {{ScriptFunction|bool|Rotation|{get; set;}|Returns Rotation value of the Audio Reactive Particle System.|5=
| + | |
− | local Object = Space.Scene.Find("Audio Source")<br>
| + | |
− | Space.Log(Object.AudioReactiveParticleSystem.Rotation)
| + | |
− | }}
| + | |
− | | + | |
− | {{ScriptFunction|bool|Scale|{get; set;}|Returns Scale value of the Audio Reactive Particle System.|5=
| + | |
− | local Object = Space.Scene.Find("Audio Source")<br>
| + | |
− | Space.Log(Object.AudioReactiveParticleSystem.Scale)
| + | |
− | }}
| + | |
− | | + | |
− | {{Scripting Navbox}}
| + | |