API:Class/TextService

Filtered-inheritance mode: While this class technically inherits all Instance class members, some (if not all) have been hidden because they serve no purpose for this object.
Service: This class is a service. It is a top-level singleton which can be obtained with the GetService method.

Textlabel icon.pngTextService : Object Icon.pngInstance

This service is internally responsible for handling the display of text in-engine.

Functions

Functions [toggle]

Vector2GetTextSize ( string string, int fontSize, Font font, Vector2 frameSize )

Computes the Vector2 dimensions that will be taken up with text when using the specified parameters.

|RMD member="API:Class/TextService/GetTextSize"|Computes the Vector2 dimensions that will be taken up with text when using the specified parameters.|/RMD|
GetTextSize ( string string, int fontSize, Font font, Vector2 frameSize )
Computes the Vector2 dimensions that will be taken up with text when using the specified parameters.

YieldFunctions

YieldFunctions [toggle]

TextFilterResultFilterStringAsync ( string stringToFilter, int fromUserId )

Filters a string being received from a user, and returns a TextFilterResult which can be used to distribute the correctly filtered text accordingly.

|RMD member="API:Class/TextService/FilterStringAsync"|Filters a string being received from a user, and returns a TextFilterResult which can be used to distribute the correctly filtered text accordingly.|/RMD|
FilterStringAsync ( string stringToFilter, int fromUserId )
Filters a string being received from a user, and returns a TextFilterResult which can be used to distribute the correctly filtered text accordingly.


|RMD member="API:Class/TextService"|This service is internally responsible for handling the display of text in-engine. |/RMD|