Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


EditorToolbarToggle

Constructor.
Read time 1 minuteLast updated 6 days ago

Definition

EditorToolbarToggle()

Constructor.
public EditorToolbarToggle()

EditorToolbarToggle(string)

Constructor.
public EditorToolbarToggle(string text)

Parameters

text

The text associated with the toggle.

EditorToolbarToggle(Texture2D)

Constructor.
public EditorToolbarToggle(Texture2D icon)

Parameters

The icon associated with the toggle.

EditorToolbarToggle(Texture2D, Texture2D)

Constructor.
public EditorToolbarToggle(Texture2D onIcon, Texture2D offIcon)

Parameters

onIcon

The icon associated with the toggle when the value is true.

offIcon

The icon associated with the toggle when the value is false.

EditorToolbarToggle(string, string)

Constructor.
public EditorToolbarToggle(string textIcon, string label)

Parameters

textIcon


label

EditorToolbarToggle(string, Texture2D, Texture2D)

Constructor.
public EditorToolbarToggle(string text, Texture2D onIcon, Texture2D offIcon)

Parameters

text

The text associated with the toggle.

onIcon

The icon associated with the toggle when the value is true.

offIcon

The icon associated with the toggle when the value is false.