Beamable SDK
Public Member Functions | Static Public Member Functions | Events | List of all members
Beamable.Editor.UI.Components.BeamablePopupWindow Class Reference
Inheritance diagram for Beamable.Editor.UI.Components.BeamablePopupWindow:
Inheritance graph
[legend]
Collaboration diagram for Beamable.Editor.UI.Components.BeamablePopupWindow:
Collaboration graph
[legend]

Public Member Functions

BeamablePopupWindow FitToContent ()
 
void SwapContent (BeamableVisualElement other, Action< BeamablePopupWindow > onDomainReload=null)
 
void Refresh ()
 
void OnBeforeSerialize ()
 
void OnAfterDeserialize ()
 

Static Public Member Functions

static Rect GetLowerLeftOfBounds (Rect visualElementBounds)
 Create screen-relative, parent VisualElement-relative Rect for new BeamablePopupWindow More...
 
static Rect GetLowerRightOfBounds (Rect visualElementBounds)
 
static Rect GetCenteredScreenRectFromWorldBounds (Rect visualElementBounds, Vector2 newWindowSize)
 Create CENTERED screen-relative, parent VisualElement-relative Rect for new ConfirmationPopupVisualElement More...
 
static Rect GetCenteredScreenRectForWindow (EditorWindow window, Vector2 size)
 Create a Centered screen-relative rectangle, given a parent editor window More...
 
static async Promise< BeamablePopupWindowShowDropdownAsync (string title, Rect sourceRect, Vector2 size, BeamableVisualElement content)
 Create new popup with contents of any BeamableVisualElement This method introduces a delayFrame to let later versions of Unity avoid throwing a warning about an unchecked window. More...
 
static BeamablePopupWindow ShowDropdown (string title, Rect sourceRect, Vector2 size, BeamableVisualElement content)
 Create new popup with contents of any BeamableVisualElement More...
 
static BeamablePopupWindow ShowUtility (string title, BeamableVisualElement content, EditorWindow parent, Vector2 defaultSize, Action< BeamablePopupWindow > onDomainReload=null)
 
static BeamablePopupWindow ShowConfirmationUtility (string title, ConfirmationPopupVisualElement element, EditorWindow parent, Action< BeamablePopupWindow > onDomainReload=null)
 
static void CloseConfirmationWindow ()
 

Events

Action OnClosing
 

Member Function Documentation

◆ GetCenteredScreenRectForWindow()

static Rect Beamable.Editor.UI.Components.BeamablePopupWindow.GetCenteredScreenRectForWindow ( EditorWindow  window,
Vector2  size 
)
inlinestatic

Create a Centered screen-relative rectangle, given a parent editor window

Parameters
window

◆ GetCenteredScreenRectFromWorldBounds()

static Rect Beamable.Editor.UI.Components.BeamablePopupWindow.GetCenteredScreenRectFromWorldBounds ( Rect  visualElementBounds,
Vector2  newWindowSize 
)
inlinestatic

Create CENTERED screen-relative, parent VisualElement-relative Rect for new ConfirmationPopupVisualElement

Parameters
visualElementBounds

◆ GetLowerLeftOfBounds()

static Rect Beamable.Editor.UI.Components.BeamablePopupWindow.GetLowerLeftOfBounds ( Rect  visualElementBounds)
inlinestatic

Create screen-relative, parent VisualElement-relative Rect for new BeamablePopupWindow

Parameters
visualElementBounds

◆ ShowDropdown()

static BeamablePopupWindow Beamable.Editor.UI.Components.BeamablePopupWindow.ShowDropdown ( string  title,
Rect  sourceRect,
Vector2  size,
BeamableVisualElement  content 
)
inlinestatic

Create new popup with contents of any BeamableVisualElement

Parameters
title
sourceRect
size
content
Returns

◆ ShowDropdownAsync()

static async Promise< BeamablePopupWindow > Beamable.Editor.UI.Components.BeamablePopupWindow.ShowDropdownAsync ( string  title,
Rect  sourceRect,
Vector2  size,
BeamableVisualElement  content 
)
inlinestatic

Create new popup with contents of any BeamableVisualElement This method introduces a delayFrame to let later versions of Unity avoid throwing a warning about an unchecked window.

Parameters
title
sourceRect
size
content
Returns

The documentation for this class was generated from the following file: