This member cannot be used in scripts, but is usable in the command bar and plugins.
For thread safety, this property is not safe to read in an unsynchronized thread.
Click fires when the PluginToolbarButton is pressed and released by the user.
Clicking a PluginToolbarButton causes the state of the button to toggle. Call
PluginToolbarButton/SetActive|SetActive to manually set the state of the button.
This code sample demonstrates creating a
PluginToolbar and a
PluginToolbarButton on it, then connecting a function
onClick to the
PluginToolbarButton/Click event. When pressed, the button will print “Hello, world” to the output.