Class Popover
Manages Visibility of the popover. Will dismiss itself when the user clicks outside of the popover if HideOnOutsideClick = true
Inheritance
Inherited Members
Namespace: LlamaSoftware.UI
Assembly: LlamaSoftware.UI.dll
Syntax
[RequireComponent(typeof(Animator), typeof(CanvasGroup))]
public class Popover : Page
Fields
HideOnOutsideClick
Whether or not to hide the popover when the user clicks outside of the popover.
Declaration
public bool HideOnOutsideClick
Field Value
| Type | Description |
|---|---|
| System.Boolean |
IsVisible
Visible for inspector to set default state. Changing this at runtime does not trigger in/out transitions nor callbacks. Instead this component can be managed via Toggle(), Show(), and Hide().
Declaration
public bool IsVisible
Field Value
| Type | Description |
|---|---|
| System.Boolean |
Methods
Awake()
Declaration
protected override void Awake()
Overrides
CallPostPopAction()
Handles setting IsVisible = false after animation completes
Declaration
public override void CallPostPopAction()
Overrides
CallPostPushAction()
Handles setting IsVisible = true after animation completes
Declaration
public override void CallPostPushAction()
Overrides
Hide()
Hides the popover. Will do nothing if already hiding
Declaration
public void Hide()
Show()
Shows the popover. Will do nothing if already showing.
Declaration
public void Show()
Toggle()
Inverts the state of the popover. If already showing, will hide. If hidden, will show. Useful for single binding onClick in the inspector
Declaration
public void Toggle()