Hierarchy

  • ReactBasedUiSystem

Methods

  • Add a UI renderer associated with an entity. The UI will be automatically cleaned up when the entity is removed from the engine.

    If a renderer is already associated with the given entity, it will be replaced.

    This allows dynamically adding UI Renderers that are rendered alongside the main UI set via setUiRenderer().

    Parameters

    • entity: Entity

      The entity to associate with this UI renderer. When the entity is removed, the UI renderer is automatically cleaned up.

    • ui: UiComponent

      The UI component to render

    • Optional options: UiRendererOptions

      Optional virtual size used for UI scale factor when main UI has none

    Returns void

  • Destroy all UI entities and unregister related systems.

    Returns void

  • Remove a previously added UI renderer by its associated entity. It does not affect the main UI renderer.

    Parameters

    • entity: Entity

      The entity whose UI renderer should be removed

    Returns void