FirstModulAR 0.1.0
Loading...
Searching...
No Matches
CameraRendererWidget Class Reference

A widget that captures and displays the RGB camera feed asynchronously. Used for debugging the camera feed. More...

Inheritance diagram for CameraRendererWidget:
FMAR.UI.Widgets.Widget

Protected Member Functions

override void Awake ()
 Initializes the widget.
 
override void Start ()
 Starts the widget and subscribes to the camera data capture event.
 
void OnDestroy ()
 Unsubscribes from the camera data capture event when the widget is destroyed.
 
- Protected Member Functions inherited from FMAR.UI.Widgets.Widget
virtual void Update ()
 
void CreateBorder (Vector2 size)
 Creates a border for the widget, around the edges.
 

Additional Inherited Members

- Public Member Functions inherited from FMAR.UI.Widgets.Widget
virtual void SetWidgetContainer (WidgetContainer widgetContainer)
 Called when the widget is moved into a new container. Handles widget resizing and repositioning. Can be overridden to provide additional functionality.
 
void SetBorderPositions (Vector2 size)
 Sets the border positions.
 
void UpdateBorderTransparency ()
 Updates the border transparency based on the widget container's border transparency.
 
void DetachFromContainer ()
 Detaches the widget from the widget container.
 
void PlaySound (AudioClip clip)
 Plays a sound localized to the widget.
 
bool TryMove ()
 Tries to move the widget out of the widget container.
 
void SetBackgroundEnabled (bool enabled)
 Sets the background's enabled state.
 
- Public Attributes inherited from FMAR.UI.Widgets.Widget
Sprite widgetIcon
 
- Protected Attributes inherited from FMAR.UI.Widgets.Widget
Image bg
 
RectTransform rt
 
AudioSource aud
 
- Properties inherited from FMAR.UI.Widgets.Widget
WidgetContainer WidgetContainer [get]
 
Vector2 PreferredFloatingDisplaySize [get]
 
Color BackgroundBaseColor [get]
 
RectTransform Rt [get]
 
bool Locked [get]
 

Detailed Description

A widget that captures and displays the RGB camera feed asynchronously. Used for debugging the camera feed.

Member Function Documentation

◆ Awake()

override void CameraRendererWidget.Awake ( )
inlineprotectedvirtual

Initializes the widget.

Reimplemented from FMAR.UI.Widgets.Widget.

◆ OnDestroy()

void CameraRendererWidget.OnDestroy ( )
inlineprotected

Unsubscribes from the camera data capture event when the widget is destroyed.

◆ Start()

override void CameraRendererWidget.Start ( )
inlineprotectedvirtual

Starts the widget and subscribes to the camera data capture event.

Reimplemented from FMAR.UI.Widgets.Widget.


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