|
Endstar LUA API Documentation
|
Allows the display and updating of 3D text in the game world. Much of this is a wrapper for Unity's TextMeshPro! More...
Public Member Functions | |
| void | SetColor (Context instigator, Color color) |
| Sets the color of the text. Alpha is ignored, see SetAlpha. | |
| void | SetAlpha (Context instigator, float alpha) |
| Sets the transparency of the text color. | |
| void | SetCharacterSpacing (Context instigator, float spacing) |
| How much additional spacing should be between the characters? | |
| void | SetLineSpacing (Context instigator, float spacing) |
| How much spacing should be between the lines of text? | |
| void | DisplayText (Context instigator, bool display) |
| Hides or un-hides the text. | |
| void | SetFontSize (Context instigator, float fontSize) |
| Sets the current font size. Only has effect if Auto-sizing is not enabled. | |
| void | SetAutoSizingEnabled (Context instigator, bool useAutoSizing) |
| Changes if this text auto-sizes based on text length. | |
| void | SetAutoSizingMinimum (Context instigator, float minimum) |
| If this text auto-sizes, what is the minimum font size it can scale to? | |
| void | SetAutoSizingMaximum (Context instigator, float maximum) |
| If this text auto-sizes, what is the maximum font size it can scale to? | |
| void | SetLocalizedText (Context instigator, LocalizedString text) |
| Updates the displayed 3D text with a text localized to each player! | |
| void | SetRawText (Context instigator, string text) |
| Sets the text to a direct string, will not support localization. | |
Allows the display and updating of 3D text in the game world. Much of this is a wrapper for Unity's TextMeshPro!
| void DisplayText | ( | Context | instigator, |
| bool | display ) |
Hides or un-hides the text.
| instigator | The source context that is triggering this change |
| display | True to display it, false to hide it! |
| void SetAlpha | ( | Context | instigator, |
| float | alpha ) |
Sets the transparency of the text color.
| instigator | The source context that is triggering this change |
| alpha |
| void SetAutoSizingEnabled | ( | Context | instigator, |
| bool | useAutoSizing ) |
Changes if this text auto-sizes based on text length.
| instigator | The source context that is triggering this change |
| useAutoSizing |
| void SetAutoSizingMaximum | ( | Context | instigator, |
| float | maximum ) |
If this text auto-sizes, what is the maximum font size it can scale to?
| instigator | The source context that is triggering this change |
| maximum |
| void SetAutoSizingMinimum | ( | Context | instigator, |
| float | minimum ) |
If this text auto-sizes, what is the minimum font size it can scale to?
| instigator | The source context that is triggering this change |
| minimum |
| void SetCharacterSpacing | ( | Context | instigator, |
| float | spacing ) |
How much additional spacing should be between the characters?
| instigator | The source context that is triggering this change |
| spacing |
Sets the color of the text. Alpha is ignored, see SetAlpha.
| instigator | The source context that is triggering this change |
| color |
| void SetFontSize | ( | Context | instigator, |
| float | fontSize ) |
Sets the current font size. Only has effect if Auto-sizing is not enabled.
| instigator | The source context that is triggering this change |
| fontSize |
| void SetLineSpacing | ( | Context | instigator, |
| float | spacing ) |
How much spacing should be between the lines of text?
| instigator | The source context that is triggering this change |
| spacing |
| void SetLocalizedText | ( | Context | instigator, |
| LocalizedString | text ) |
Updates the displayed 3D text with a text localized to each player!
| instigator | The source context that is triggering this change |
| text | The localized text available |
| void SetRawText | ( | Context | instigator, |
| string | text ) |
Sets the text to a direct string, will not support localization.
| instigator | The source context that is triggering this change |
| text | The new text to display |