precalculateWordWrap(text) → {array}
Runs the given text through the Text.runWordWrap function and returns
the results as an array, where each element of the array corresponds to a wrapped
line of text.
Useful if you wish to control pagination on long pieces of content.
Parameters
Name | Type | Description |
---|---|---|
text | string | The text for which the wrapping will be calculated. |
Returns
array -
An array of strings with the pieces of wrapped text.
- Source code: gameobjects/Text.js (Line 927)
Please login to continue.