drawBackground method

void drawBackground(
  1. Canvas canvas
)

Override this method to provide a custom background to the text box.

Note: The background is designed to stretch across the entire scrollable area of the text box. This ensures that as the user scrolls through the text, the background moves in sync with the text. As an alternative, consider adding ScrollTextBoxComponent to a SpriteComponent.

Implementation

void drawBackground(Canvas canvas) {}