Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


MainToolbarDropdown(MainToolbarContent, Action<Rect>)

Specify the content and function of a main toolbar dropdown.
Read time 1 minuteLast updated 12 days ago

Definition

public MainToolbarDropdown(MainToolbarContent content, Action<Rect> openDropdown)

Parameters

The visual content for this button.

openDropdown

The callback that Unity invokes when the user selects the dropdown. Unity provides the
rect
where the dropdown appears as a parameter.