Members
OnValueChanged
void OnValueChanged
(Closure callback)
Binds a function to be triggered when value of the UIToggle changes
ovc = function()
Space.Log("Toggled")
end
Space.Host.ExecutingObject.UIToggle.OnValueChanged(ovc)
Properties
Enabled
bool Enabled
{ get;set; }
Whether the UIToggle is Enabled or not
Space.Host.ExecutingObject.UIToggle.Enabled = true
Interactable
bool Interactable
{ get;set; }
Whether the UIToggle is Interactable or not
Space.Host.ExecutingObject.UIToggle.Interactable = true
IsOn
Whether the UIToggle is toggled On or Off
Space.Host.ExecutingObject.UIToggle.IsOn = true
NormalColor
The normal color.
local toggle=Space.Host.GetReference("Toggle").UIToggle
Space.Log(toggle.NormalColor.ToString())
HighlightedColor
SColor HighlightedColor
{get;set}
The color of the control when it is highlighted.
local toggle=Space.Host.GetReference("Toggle").UIToggle
Space.Log(toggle.HighlightedColor.ToString())
PressedColor
The color of the control when it is pressed.
local toggle=Space.Host.GetReference("Toggle").UIToggle
Space.Log(toggle.PressedColor.ToString())
DisabledColor
SColor DisabledColor
{get;set}
The color of the control when it is disabled.
local toggle=Space.Host.GetReference("Toggle").UIToggle
Space.Log(toggle.DisabledColor.ToString())
ColorMultiplier
float ColorMultiplier
{get;set}
This multiplies the tint color for each transition by its value.
local toggle=Space.Host.GetReference("Toggle").UIToggle
Space.Log(toggle.ColorMultiplier)
Scripting Portal
|
|
Common
|
|
|
Key Classes
|
|
|
Helper Classes
|
|
|
Scripting samples and tutorials
|
|
|