Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


MainToolbarToggle(MainToolbarContent, bool, Action<bool>)

Specify the content and function of a main toolbar toggle.
Read time 1 minuteLast updated 6 days ago

Definition

public MainToolbarToggle(MainToolbarContent content, bool value, Action<bool> valueChanged)

Parameters

The visual content of the toggle.

value

The state of the toggle:
On
or
Off
.

valueChanged

The callback that receives the new state of the toggle when the user selects it.