• Set the alpha of the object. Mutate the object.

    Parameters

    • obj: GameObject

      object to be set

    • alpha: number

      new alpha

    Returns GameObject | undefined

    game object itself