CharFXTransform
Controls how an individual character will be displayed in a .
By setting various properties on this object, you can control how individual characters will be displayed in a RichTextEffect.
- int absolute_index
Default | 0 |
Setter | set_absolute_index(value) |
Getter | get_absolute_index() |
The index of the current character (starting from 0). Setting this property won’t affect drawing.
- character
Default | 0 |
Setter | set_character(value) |
Getter | get_character() |
- Color color
The color the character will be drawn with.
Default | 0.0 |
Setter | set_elapsed_time(value) |
Getter | get_elapsed_time() |
The time elapsed since the was added to the scene tree (in seconds). Time stops when the project is paused, unless the RichTextLabel‘s is set to Node.PAUSE_MODE_PROCESS.
Note: Time still passes while the is hidden.
- Dictionary env
Default | {} |
Setter | set_environment(value) |
Getter | get_environment() |
For example, the opening BBCode tag [example foo=hello bar=true baz=42 color=#ffffff]
will map to the following :
{"foo": "hello", "bar": true, "baz": 42, "color": Color(1, 1, 1, 1)}
- Vector2 offset
The position offset the character will be drawn with (in pixels).
- relative_index
Default | 0 |
Setter | set_relative_index(value) |
Getter | get_relative_index() |
The index of the current character (starting from 0). Setting this property won’t affect drawing.
Default | true |
Setter | set_visibility(value) |
Getter | is_visible() |