SAudioReactiveMaterial
ClientComposants
Dans cette classeEnabled
Membres 5
| Propriété | Enabled | Returns true if the Audio Reactive Material Enabled. |
| Propriété | Target | – |
| Propriété | OriginalMaterial | – |
| Propriété | TargetMaterial | – |
| Propriété | GameObject | Returns a reference to the GameObject of this component. |
Propriétés
Enabled
bool Enabled {get; set; }
Returns true if the Audio Reactive Material Enabled.
Exemple
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
Exemple
Lua
Space.Host.ExecutingObject.AudioReactiveMaterial.Target = AMaterial
OriginalMaterial
Exemple
Lua
Space.Host.ExecutingObject.AudioReactiveMaterial.OriginalMaterial = AMaterial
TargetMaterial
Exemple
Lua
Space.Host.ExecutingObject.AudioReactiveMaterial.TargetMaterial = AMaterial
GameObjectLecture seule
Returns a reference to the GameObject of this component.
Exemple
Lua
theGameObject = Space.Host.ExecutingObject.AudioReactiveMaterial.GameObject



