Class Style
Implements
Constructors
constructor
-
Creates a new style object
Parameters
- host: AdvancedDynamicTexture
defines the AdvancedDynamicTexture which hosts this style
Returns Style
- host: AdvancedDynamicTexture
Properties
on Changed Observable
onChangedObservable: any = ...
Observable raised when the style values are changed
Accessors
font Family
-
get fontFamily(): string
Gets or sets the font family
Returns string
-
set fontFamily(value: string): void
Parameters
- value: string
Returns void
font Size
-
get fontSize(): string | number
Gets or sets the font size
Returns string | number
-
set fontSize(value: string | number): void
Parameters
- value: string | number
Returns void
font Style
-
get fontStyle(): string
Gets or sets the font style
Returns string
-
set fontStyle(value: string): void
Parameters
- value: string
Returns void
font Weight
-
get fontWeight(): string
Gets or sets font weight
Returns string
-
set fontWeight(value: string): void
Parameters
- value: string
Returns void
Define a style used by control to automatically setup properties based on a template. Only support font related properties so far