• Draw a text (string) on the screen with given screen space position in the current frame.

    The origin of screen space is upper-left corner and the positive Y direction is downward.

    The drawn text will only last for one frame. You should put this under the Update function (or a function that is called by the Update function) to keep the text stays in every frame.

    You can use rich text for the parameter text. For example: gui_label("<color=#AA00FF>Hello World</color>", 100, 100);

    Parameters

    • text: string

      The string you want to display on screen.

    • x: number

      The x coordinate of the text (in screen position).

    • y: number

      The y coordinate of the text (in screen position).

    Returns void

Generated using TypeDoc