API reference
API reference
Select your platform
No SDKs available
No versions available

ButtonWithLabel Class

Extends Button
This is a MonoBehaviour used for Button UI element that is represented by a label text.
Used by mainly the debug data's action button UI in the in-headset Inspector panel in Immersive Debugger. For more info about Immersive Debugger, check out the official doc

Protected Fields

_background : Background
Signature
Background _background
_backgroundStyle : ImageStyle
Signature
ImageStyle _backgroundStyle
_label : Label
Signature
Label _label

Properties

Background : Background
[Get]
The background of the button.
Signature
Background Background
BackgroundStyle : ImageStyle
[Set]
The style of the background, can specify the detailed properties such as sprite and pixel density multiplier.
Upon setting the style, a refresh of the style would be invoked to reflect in UI.
Signature
ImageStyle BackgroundStyle
Label : string
[Get][Set]
String of the label text that is being displayed on top of the button UI.
Signature
string Label
TextStyle : TextStyle
[Set]
The style (including alignment, color, font) of the text that is being displayed on top of the button UI.
Signature
TextStyle TextStyle

Protected Methods

OnHoverChanged ()
Signature
override void OnHoverChanged()
Returns
override void
OnTransparencyChanged ()
Signature
override void OnTransparencyChanged()
Returns
override void
RefreshStyle ()
Signature
void RefreshStyle()
Returns
void
Setup ( owner )
Signature
override void Setup(Controller owner)
Parameters
owner: Controller
Returns
override void
UpdateBackground ()
Signature
virtual void UpdateBackground()
Returns
void