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

ButtonWithIcon Class

Extends Button
This is a MonoBehaviour used for Button UI element that is represented by an Image icon.
Used by multiple controls UI in the in-headset panels 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
_icon : Icon
Signature
Icon _icon
_iconStyle : ImageStyle
Signature
ImageStyle _iconStyle

Properties

BackgroundStyle : ImageStyle
[Get][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
Icon : Texture2D
[Set]
The texture used for the icon.
Signature
Texture2D Icon
IconStyle : ImageStyle
[Set]
The style of the icon, similar to background can specify detailed properties.
Upon setting the style, a refresh of the style would be invoked to reflect in UI.
Signature
ImageStyle IconStyle

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
UpdateIcon ()
Signature
virtual void UpdateIcon()
Returns
void