Breakroom is now Sinewave Campus. Book a meeting

SAudioReactiveMaterial

ClientComponents
On this classEnabled
  1. Properties
  2. Enabled
  3. Target
  4. OriginalMaterial
  5. TargetMaterial
  6. GameObject
Members 5
PropertyEnabledReturns true if the Audio Reactive Material Enabled.
PropertyTarget–
PropertyOriginalMaterial–
PropertyTargetMaterial–
PropertyGameObjectReturns a reference to the GameObject of this component.

Properties​

Enabled​

bool Enabled {get; set; }

Returns true if the Audio Reactive Material Enabled.

Example

Lua
Space.Host.ExecutingObject.AudioReactiveMaterial.Enabled = false
Lua
--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)

Target​

SMaterial Target {get; set; }

Example

Lua
Space.Host.ExecutingObject.AudioReactiveMaterial.Target = AMaterial

OriginalMaterial​

SMaterial OriginalMaterial {get; set; }

Example

Lua
Space.Host.ExecutingObject.AudioReactiveMaterial.OriginalMaterial = AMaterial

TargetMaterial​

SMaterial TargetMaterial {get; set; }

Example

Lua
Space.Host.ExecutingObject.AudioReactiveMaterial.TargetMaterial = AMaterial

GameObjectRead only​

SGameObject GameObject {get; }

Returns a reference to the GameObject of this component.

Example

Lua
theGameObject = Space.Host.ExecutingObject.AudioReactiveMaterial.GameObject