Source Academy Modules
    Preparing search index...

    Function update_position

    • Updates the position transform of the GameObject.

      Parameters

      • gameObject: GameObject

        GameObject reference

      • coordinates: PositionXY

        [x, y] coordinates of new position

      Returns GameObject

      the GameObject reference passed in

      update_position(create_text('Hello world!'), [1, 2]);