ZGameEditor Documentation
Community |
RenderTextRenderTextRender text on screen using the current material. This component can only be used in the OnRender property on Model or Application components. See also: Font. PropertiesTextThe text that will be rendered. TextFloatRefA reference to a floating point property that have its value rendered. The value will first be rounded to an integer, use FloatMultiply if decimals are needed. FloatMultiplyIf TextFloatRef is set, then the value will first be multiplied using FloatMultiply before render. X / YX and Y coordinates where text will be rendered. Range is -1 to 1, with 0 at center. See also UseModelSpace-property. ScaleScale of text that will be rendered. AlignAlign text: Left or Center. If the text includes linebreaks, then the text will be centered using the width of the first line only. StretchYDefault value is 1. Modify this value to stretch or shrink the text in the Y axis. RenderCharExpressionAn expression that will be executed before each character is rendered. This is useful for making animations. Special properties that can be modified in the expression are: CharX, CharY, CharRotate, CharScale and CharI. UseModelSpaceIf set then the text will be rendered relative to the current position of the Model executing the RenderText-command. If not set (default) then the text will be rendered in screen coordinates. |