--clicking this object will toggle Enable/Disable an object's Button componentthisGameObject = Space.Host.ExecutingObjectbutton = Space.Host.GetReference("button").UIButton --make sure to add this reference to the Scripting Runtime componentOnClick=function()button.Enabled =not button.EnabledendthisGameObject.AddClickable()thisGameObject.Clickable.OnClick(OnClick)
Interactable
bool Interactablegetset
Enable Interactable if you want this button to accept input.
--clicking this object will toggle Interactable status on an object's Button componentthisGameObject = Space.Host.ExecutingObjectbutton = Space.Host.GetReference("button").UIButton --make sure to add this reference to the Scripting Runtime componentOnClick=function()button.Interactable=not button.InteractableendthisGameObject.AddClickable()thisGameObject.Clickable.OnClick(OnClick)
This multiplies the tint color for each transition by its value. With this you can create colors greater than 1 to brighten the colors on graphic elements whose base color is less than white.