PopupManager.IPopupConfig
An interface in Root.Township, the global namespace.
Handle to a popup queued with PopupManager.Show. Lets you cancel it or swap its board prefab before it appears.
- Listed in Global namespace: P
- Nested in
PopupManager - Derived types
PopupManager.PopupConfig
Properties
| Member | What it is |
|---|---|
bool IsCancelled { get; } | True after Cancel. |
IPopupBoard Prefab { get; } | The popup board prefab to spawn, or null to use the manager's default board. |
Methods
| Member | What it is |
|---|---|
void Cancel() | Marks the popup cancelled so the queue skips it. Has no effect once shown. |
void SetPrefab(IPopupBoard prefab) | Changes the board prefab used when the popup is shown. |
IPopupBoard Spawn(Transform parent, IPopupBoard defaultPrefab, Action<IPopupBoard> onClosed) | Used by the manager: instantiates the board under the parent, hooks the closed callback and runs the setup action. |
Used in
Members of other types that take, return or hold a IPopupConfig: