• Set the display size of the object. Mutate the object.

    Parameters

    • obj: GameObject

      object to be set

    • x: number

      new display width size

    • y: number

      new display height size

    Returns GameObject | undefined

    game object itself