Implements
Methods
getTexture
(options, resolution, style, _textKey) Texture
Deprecated``
: since 8.0.0
Name |
Type |
Attributes |
Description |
options |
TextOptions | string
|
|
|
resolution |
number
|
<optional>
|
|
style |
TextStyle
|
<optional>
|
|
_textKey |
string
|
<optional>
|
|
Returns:
renderTextToCanvas
(text, style, resolution, canvasAndContext) void
Renders text to its canvas, and updates its texture.
By default this is used internally to ensure the texture is correct before rendering,
but it can be used called externally, for example from this class to 'pre-generate' the texture from a piece of text,
and then shared across multiple Sprites.
Name |
Type |
Description |
text |
string
|
|
style |
TextStyle
|
|
resolution |
number
|
|
canvasAndContext |
CanvasAndContext
|
|