SLight
Index
Properties Index
Property Name
Properties
Enabled
Space.Host.ExecutingObject.Light.Enabled = false--the below script will make the object Enable/Disable it's Light component
--[Add "light" reference to the Scripting Runtime component]
thisGameObject = Space.Host.ExecutingObject
light = Space.Host.GetReference("light").Light
OnClick = function()
light.Enabled = not light.Enabled
end
thisGameObject.AddClickable()
thisGameObject.Clickable.OnClick(OnClick)