Toggle
Creates a Toggle with no label.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Constructor
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
Toggle()
Creates a Toggle with no label.
public Toggle()
Toggle(string)
Creates a Toggle with a Label and a default manipulator.
public Toggle(string label)
Parameters
The Label text.
Remarks
The default manipulator makes it possible to activate the Toggle with a left mouse click.