|
|
Line 1: |
Line 1: |
− | =Properties=
| + | This page has moved to: https://docs.sine.space/v/scripting/client-scripting/components/saudioreactivematerial |
− | | + | |
− | {{ScriptFunction|bool|Enabled|{get; set;}|Returns true if the Audio Reactive Material Enabled.|5=
| + | |
− | local Object = Space.Scene.Find("Audio Source")<br>
| + | |
− | Space.Log(Object.AudioReactiveMaterial.Enabled)<br>
| + | |
− | ''-- print true.''|6=<pre>--clicking this object will Enable/Disable it's Audio Reactive Material component
| + | |
− | thisGameObject = Space.Host.ExecutingObject
| + | |
− | component = thisGameObject.AudioReactiveMaterial
| + | |
− | | + | |
− | | + | |
− | OnClick = function()
| + | |
− | component.Enabled = not component.Enabled
| + | |
− | end
| + | |
− | | + | |
− | | + | |
− | thisGameObject.AddClickable()
| + | |
− | thisGameObject.Clickable.OnClick(OnClick)</pre>
| + | |
− | }}
| + | |
− | | + | |
− | {{ScriptFunction|SMaterial|Target|{get; set;}|Returns Target.Name value of the Audio Reactive Material.|5=
| + | |
− | local Object = Space.Scene.Find("Audio Source")<br>
| + | |
− | Space.Log(Object.AudioReactiveMaterial.Target.Name)
| + | |
− | }}
| + | |
− | | + | |
− | {{ScriptFunction|SMaterial|TargetMaterial|{get; set;}|Returns TargetMaterial.Name value of the Audio Reactive Material.|5=
| + | |
− | local Object = Space.Scene.Find("Audio Source")<br>
| + | |
− | Space.Log(Object.AudioReactiveMaterial.TargetMaterial.Name)
| + | |
− | }}
| + | |
− | | + | |
− | {{ScriptFunction|SMaterial|OriginalMaterial|{get; set;}|Returns OriginalMaterial.Name value of the Audio Reactive Material.|5=
| + | |
− | local Object = Space.Scene.Find("Audio Source")<br>
| + | |
− | Space.Log(Object.AudioReactiveMaterial.OriginalMaterial.Name)
| + | |
− | }}
| + | |
− | | + | |
− | {{Scripting Navbox}}
| + | |
Latest revision as of 05:13, 19 September 2022
This page has moved to: https://docs.sine.space/v/scripting/client-scripting/components/saudioreactivematerial