Hierarchy

  • default

Constructors

  • Returns default

Accessors

  • get scaleNativeFactor(): number
  • Returns number

Methods

  • Parameters

    • value: number
    • Optional floor: number | "pixel"

    Returns number

  • Returns void

  • Returns the current UI scale (after being clamped by min & max).

    Returns number

  • Parameters

    • scale: number = ...

    Returns number

  • Parameters

    • floor: number = 1

    Returns number

  • Returns the maximum scale the screen size will allow.

    Returns number

  • Returns the minimum scale we allow, 0.5.

    Returns number

  • Returns the currently "requested" UI scale.

    Returns number

  • Returns boolean

  • Returns boolean

  • Requests a new UI scale, a multiplier of the default size.

    Parameters

    • scale: number

    Returns void

  • Updates the UI scale based on the current viewport.

    Parameters

    • force: boolean = false

    Returns void

Generated using TypeDoc