Component
Graphics
(NOTE) Text that is rendered from a texture atlas in the same way that Sprites are.
Methods | Properties | Base Classes | Derived Classes |
---|---|---|---|
GetCharacterPosition | Font | basesprite | |
MeasureGivenText | FontSize | ||
MeasureText | PixelsPerUnit | ||
Constructor | Text | ||
TextAlign |
Properties
Font : font
Font used to display the text.
var Font : Font
FontSize : integer
Size that the font will be rastered at to a texture atlas.
var FontSize : Integer
PixelsPerUnit : real
Number of pixels of the font size that map to one world space unit.
var PixelsPerUnit : Real
Text : string
Text to display.
var Text : String
TextAlign : TextAlign
How to position the text about the objects origin.
var TextAlign : TextAlign
Methods
GetCharacterPosition : real3
Get the position in world space of a character by index. |Name|Type|Description| |---|---|---| |characterIndex|integer| |
function GetCharacterPosition(characterIndex : Integer) : Real3
MeasureGivenText : real2
Get the effective size in world space that the SpriteText would be if this was its text. |Name|Type|Description| |---|---|---| |text|string| |
function MeasureGivenText(text : String) : Real2
MeasureText : real2
Get the effective size in world space of the current text. |Name|Type|Description| |---|---|---|
function MeasureText() : Real2
SpriteText : Void
constructor
Name Type Description function SpriteText()