MainToolbarToggle(MainToolbarContent, bool, Action<bool>)
Specify the content and function of a main toolbar toggle.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前
Definition
- Type: Constructor
- Namespace: UnityEditor.Toolbars
- Assembly: UnityEditor
public MainToolbarToggle(MainToolbarContent content, bool value, Action<bool> valueChanged)
Parameters
The visual content of the toggle.
The state of the toggle: or .
OnOffThe callback that receives the new state of the toggle when the user selects it.