Class Modal
The Modal Popup class.
Inherited Members
Namespace: UnityEngine.Dt.App.UI
Syntax
public sealed class Modal : Popup<Modal>
Properties
fullscreenMode
Set the fullscreen mode for this Modal.
See ModalFullScreenMode values for more info.
Declaration
public ModalFullScreenMode fullscreenMode { get; set; }
Property Value
Type | Description |
---|---|
ModalFullScreenMode |
Methods
Build(VisualElement, VisualElement)
Build a new Modal component.
Declaration
public static Modal Build(VisualElement referenceView, VisualElement content)
Parameters
Type | Name | Description |
---|---|---|
VisualElement | referenceView | An arbitrary UI element inside the UI panel. |
VisualElement | content | The VisualElement UI element to display inside this Modal. |
Returns
Type | Description |
---|---|
Modal | The Modal instance. |
GetFocusableElement()
Returns the element that will be focused when the view will become visible.
The default value is null
.
Declaration
protected override VisualElement GetFocusableElement()
Returns
Type | Description |
---|---|
VisualElement | The element that will be focused when the view will become visible. |
Overrides
SetFullScreenMode(ModalFullScreenMode)
Set a new value for fullscreenMode property.
Declaration
public Modal SetFullScreenMode(ModalFullScreenMode mode)
Parameters
Type | Name | Description |
---|---|---|
ModalFullScreenMode | mode | The new value. |
Returns
Type | Description |
---|---|
Modal | The Modal object. |