This is a configuration module for UIPresets that will change behaviour across components.

Properties

HighestDisplayOrder: number

The highest display order of all the ScreenGui instances within the PlayerGui.

OnDisplayOrderChanged: Signal<[newOrder: number]> = ...

A beacon signal that fires when the highest display order is changed, passing the new highest display order.

ParallelEnabled: boolean = false

Whether UIPresets should optimize itself and use parallel lua benefits. WARNING: The calling thread script must be within a Actor Instance.

Methods

  • Excludes a ScreenGui from highest display order allowing multiple ScreenGui instances to be drawn on top of all components.

    Parameters

    • ui: ScreenGui

    Returns void

  • Excludes multiple ScreenGui instances same behavior as ExcludeDisplay except that the display order is arranged after adding all displays rather then per one. The DisplayOrder changed connection is deferred until the end of the resumption cycle.

    Parameters

    • uis: ScreenGui[]

    Returns void

  • Fetches the highest display order of all ScreenGui instances within PlayerGui.

    Returns number

    The highest display order

  • Private

    Deletes the excluded display order ScreenGui reference and connections.

    Parameters

    • ui: ScreenGui

      The ScreenGui to delete from the excluded display orders.

    Returns void

  • Private

    This method is the internal excludeDisplay and is not meant to be called externally.

    Parameters

    • ui: ScreenGui

      The ScreenGui to exclude

    • deferOrderChanged: boolean = false

      Whether the DisplayOrder property changed signal should be deferred till the end of the resumption cycle. Default(false)

    Returns void

Generated using TypeDoc