DropdownMenuSizeMode
Mode used to calculate the width of a dropdown.
Read time 1 minuteLast updated 11 days ago
Definition
- Type: Enum
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
public enum DropdownMenuSizeMode
Fields
Value | Description |
|---|---|
| Auto | The width of the dropdown matches the width of the provided Rect, but if the content is wider, it expands to fit the content. This is the only supported mode for OS menus. |
| Content | The width of the dropdown menu matches the width of the content. |
| Fixed | The width of the dropdown matches the width the provided Rect. |