Type Alias TextStyleWordWrapCallback
TextStyleWordWrapCallback: (
text: string,
textObject: Phaser.GameObjects.Text,
) => string | string[]
Type Declaration
- (text: string, textObject: Phaser.GameObjects.Text): string | string[]
Parameters
- text: string
- textObject: Phaser.GameObjects.Text
Returns string | string[]
A custom function that will be responsible for wrapping the text.