FirstModulAR 0.1.0
Loading...
Searching...
No Matches
FMAR.UI.Widgets.FloatingDisplay Class Reference

A widget container that stays where it was last positioned. More...

Inheritance diagram for FMAR.UI.Widgets.FloatingDisplay:
FMAR.UI.Widgets.WidgetContainer

Public Member Functions

override void DetachWidget ()
 Detaches the widget from the floating display and destroys the game object.
 
- Public Member Functions inherited from FMAR.UI.Widgets.WidgetContainer
virtual WidgetContainer Init (Widget widget, Vector2 size, bool disableCollidersOverride=false, float scaleFactor=-1, bool disableInitEvent=false)
 Initializes the widget container.
 
void UpdateSize (Vector2 size)
 Sets the size of the widget container.
 
void ToggleLockedState ()
 Toggles the locked state of the widget container, which determines if the widget can be removed or added.
 
bool TryMove ()
 Tries to move the widget.
 

Protected Member Functions

override void Update ()
 
- Protected Member Functions inherited from FMAR.UI.Widgets.WidgetContainer
virtual void Awake ()
 
void CreateBorder ()
 

Additional Inherited Members

- Protected Attributes inherited from FMAR.UI.Widgets.WidgetContainer
Widget widget
 
Vector2 size = Vector2.one
 
Material borderMaterial
 
LineRenderer border
 
bool locked
 
- Properties inherited from FMAR.UI.Widgets.WidgetContainer
Widget Widget [get]
 
Vector2 Size [get]
 
float ScaleFactor [get]
 
LineRenderer Border [get]
 
bool HoverLeft [get]
 
bool HoverRight [get]
 
bool Hover [get]
 
bool Locked [get]
 
- Events inherited from FMAR.UI.Widgets.WidgetContainer
static Action< WidgetContainerOnInit
 

Detailed Description

A widget container that stays where it was last positioned.

Member Function Documentation

◆ DetachWidget()

override void FMAR.UI.Widgets.FloatingDisplay.DetachWidget ( )
inlinevirtual

Detaches the widget from the floating display and destroys the game object.

Reimplemented from FMAR.UI.Widgets.WidgetContainer.

◆ Update()

override void FMAR.UI.Widgets.FloatingDisplay.Update ( )
inlineprotectedvirtual

Reimplemented from FMAR.UI.Widgets.WidgetContainer.


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