UI Toggle Changed
UI (buttons, toggles, sliders)Toggle.onValueChanged
A UI Toggle is switched; its on/off state is the event's value.
Pick the UI element (a button...). To press it in VRChat, its Canvas needs a VRC Ui Shape.
Happens when the toggle in the card's UI element is switched. It is wired like a button: on conversion Tripwire adds a call in the toggle's On Value Changed (UI Button Pressed).
The event's value is the toggle's isOn, read when the event fires, so it is the state after the switch. Pick it for Show in Set Active and the object follows the toggle. To do different things for on and off, put it into a variable with Set Variable and branch with If.
Unity's Toggle has a separate SetIsOnWithoutNotify for changing the value without calling On Value Changed. So setting isOn directly, even from a script, fires this event too.
Official docs: Toggle (Unity UI), Toggle API (Unity UI), VRC Ui Shape (VRChat)
Event values
Values this event has; action settings can use them as targets or values.
| Name | Type |
|---|---|
| The event's value | On/Off |