Interface IHudDefinitionProvider
Resolves a HUD id or guid into an IHudDefinition, so a host with nothing scene-authored can still show a HUD created purely through the HUD Builder and registered in Addressables.
Namespace: Serenity.GameUi.Application.Interfaces
Assembly: Serenity.GameUi.Application.dll
Syntax
public interface IHudDefinitionProvider
Methods
TryGet(string, out IHudDefinition)
Attempts to resolve a HUD definition by id or guid.
Declaration
bool TryGet(string idOrGuid, out IHudDefinition definition)
Parameters
| Type | Name | Description |
|---|---|---|
| string | idOrGuid | The HUD's Id or Guid to look up. |
| IHudDefinition | definition | The resolved definition when found; null when not found. |
Returns
| Type | Description |
|---|---|
| bool | True when a definition was found. |