Instance Propertymigueldeicaza.swiftgodot 0.45.0SwiftGodot
visible
If true
, the character will be drawn. If false
, the character will be hidden. Characters around hidden characters will reflow to take the space of hidden characters. If this is not desired, set their color
to Color(1, 1, 1, 0)
instead.
final var visible: Bool { get set }
Other members in extension
Type members
Instance members
var color: Color
The color the character will be drawn with.
var elapsedTime: Double
The time elapsed since the
RichTextLabel
was added to the scene tree (in seconds). Time stops when theRichTextLabel
is paused (seeprocessMode
). Resets when the text in theRichTextLabel
is changed.var env: GDictionary
Contains the arguments passed in the opening BBCode tag. By default, arguments are strings; if their contents match a type such as [bool], integer or float, they will be converted automatically. Color codes in the form
#rrggbb
or#rgb
will be converted to an opaqueColor
. String arguments may not contain spaces, even if they’re quoted. If present, quotes will also be present in the final string.var font: RID
Font resource used to render glyph.
var glyphCount: UInt8
Number of glyphs in the grapheme cluster. This value is set in the first glyph of a cluster. Setting this property won’t affect drawing.
var glyphFlags: UInt16
Glyph flags. See
TextServer.GraphemeFlag
for more info. Setting this property won’t affect drawing.var glyphIndex: UInt32
Font specific glyph index.
var offset: Vector2
The position offset the character will be drawn with (in pixels).
var outline: Bool
If
true
, FX transform is called for outline drawing. Setting this property won’t affect drawing.var range: Vector2i
Absolute character range in the string, corresponding to the glyph. Setting this property won’t affect drawing.
var relativeIndex: Int32
The character offset of the glyph, relative to the current
RichTextEffect
custom block. Setting this property won’t affect drawing.var transform: Transform2D
The current transform of the current glyph. It can be overridden (for example, by driving the position and rotation from a curve). You can also alter the existing value to apply transforms on top of other effects.