PcoWSkbVqDnWTu_dm2ix
Collapse Sidebar

Click

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.


Code Samples


PluginToolbarButton.Click

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.