Catches onValueChanged event in a UI Toggle component. Store the new value and/or send events. Event bool data will contain the new Toggle value
Game Object
The GameObject with the UI Toggle component.
Event Target
Where to send the event.
Send Event
Send this event when the value changes.
Value
Store the new value in bool variable.