CharTransform
:Describes how to transform each character.
group
Options
pos
?: Vec2Offset to apply to the position of the text character. Shifts the character's position by the specified 2D vector.
scale
?: Vec2 | numberScale transformation to apply to the text character's current scale. When a number, it is scaled uniformly. Given a 2D vector, it is scaled independently along the X and Y axis.
angle
?: numberIncreases the amount of degrees to rotate the text character.
color
?: ColorColor transformation applied to the text character. Multiplies the current color with this color.
opacity
?: numberOpacity multiplication applied to the text character. For example, an opacity of 0.4 with 2 set in the transformation, the resulting opacity will be 0.8 (0.4 × 2).
override
?: booleanIf true, the styles applied by this specific entry transform will override, rather than compose with, the default styles given in and by other components' styles.
font
?: string | FontDataIf the font for this character should be different from the default font or the one specified in . Because the font can't be composed like the other properties, this will override the font even if is false.
stretchInPlace
?: booleanIf true, characters that have a X scale that is not 1 won't have the bounding box stretched to fit the character, and may end up overlapping with adjacent characters.
default
true
shader
?: stringA name for a shader that will be applied to this character only.
uniform
?: UniformValues to use for the shader's uniform inputs. If there is no shader set (by this character's transform or an entire-text transform), this is not used.