Source Academy Modules
    Preparing search index...

    Function query_text

    • Queries the text of a Text GameObject.

      Parameters

      • textGameObject: TextGameObject

        TextGameObject reference

      Returns string

      text string associated with the Text GameObject

      Error if not a TextGameObject is passed in

      const text = create_text('Hello World!');
      query_text(text);