Class MenuPreviewResult
What MenuPreviewBuilder reports back about a built menu so the window can overlay info chips, the selected highlight and the scroll affordance, and hit-test clicks to option rows.
Inherited Members
Namespace: Serenity.Ui.Infrastructure.Editor.Preview
Assembly: Serenity.UnityUi.Infrastructure.Editor.dll
Syntax
public sealed class MenuPreviewResult
Constructors
MenuPreviewResult()
Declaration
public MenuPreviewResult()
Fields
Direction
The menu's layout direction.
Declaration
public MenuDirection Direction
Field Value
| Type | Description |
|---|---|
| MenuDirection |
HiddenCount
Number of options hidden beyond the visible window (0 when not clamped).
Declaration
public int HiddenCount
Field Value
| Type | Description |
|---|---|
| int |
OptionLabels
The option labels, parallel to OptionRects.
Declaration
public readonly List<string> OptionLabels
Field Value
| Type | Description |
|---|---|
| List<string> |
OptionRects
The instantiated option row RectTransforms, in declared order (live until the next render).
Declaration
public readonly List<RectTransform> OptionRects
Field Value
| Type | Description |
|---|---|
| List<RectTransform> |
ScrollActive
True when the menu clamps to a visible window and the rest are scrolled/hidden.
Declaration
public bool ScrollActive
Field Value
| Type | Description |
|---|---|
| bool |
SelectedIndex
The currently selected option index (clamped to the option range).
Declaration
public int SelectedIndex
Field Value
| Type | Description |
|---|---|
| int |