• Creates a GameObject that contains a text reference.

    Parameters

    • text: string

      Text string displayed

    Returns TextGameObject

    Example

    const helloworld = create_text("Hello\nworld!");