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

Background Class

Extends Controller
This is a MonoBehaviour used for generic background of UI element.
Allows using Sprite texture or pure Color, can set PixelDensityMultiplier. Used in Immersive Debugger for all the UI elements' background. For more info about Immersive Debugger, check out the official doc

Properties

Color : Color
[Set]
The Color used for the Image of the background.
Can work together with the Sprite property and change based on events like hover/click.
Signature
Color Color
PixelDensityMultiplier : float
[Set]
The pixelsPerUnitMultiplier property for the Image of the background.
Which is the pixel per unit modifier to change how sliced sprites are generated.
Signature
float PixelDensityMultiplier
Sprite : Sprite
[Set]
The sprite texture used for the Image of the background.
Can be null if not using it.
Signature
Sprite Sprite

Protected Methods

Setup ( owner )
Signature
override void Setup(Controller owner)
Parameters
owner: Controller
Returns
override void