ULimenModalsSubsystem
Overview
The ULimenModalsSubsystem is a subsystem that handles the creation and management of different types of modals such as confirmation, consent, and timed modals. It provides both synchronous and asynchronous methods to display these modals and manage their responses.
Properties
Type | Name | Access | Description |
|---|---|---|---|
| ShouldCreateSubsystem(UObject* Outer) const | Public | Determines if the subsystem should be created based on the outer object. |
Functions
Return Type | Signature | Description |
|---|---|---|
| DisplayConfirmationModal(const FModalParams& InParams) | Displays a confirmation modal with the provided parameters and returns the modal widget instance. |
| DisplayConsentModal(const FModalParams& InParams) | Displays a consent modal with the provided parameters and returns the modal widget instance. |
| DisplayTimedModal(const FModalParams& InParams) | Displays a timed modal with the provided parameters and returns the modal widget instance. |
Usage & Implementation Notes
The subsystem ensures that it is not created on dedicated servers.
It uses asynchronous actions (
UConfirmationModalAsyncAction,UConsentModalAsyncAction) to handle modal display, allowing for non-blocking operations in blueprints.The modals are managed through the
ULimenGenericModalWidgetclass, which handles the UI logic and responses.