Source Academy Modules
    Preparing search index...

    Function update_scale

    • Updates the scale transform of the GameObject.

      Parameters

      • gameObject: GameObject

        GameObject reference

      • scale: ScaleXY

        [x, y] scale of the size of the GameObject

      Returns GameObject

      the GameObject reference passed in

      update_scale(create_text('Hello world!'), [2, 0.5]);