Class UnityHudIconSetRepresentation
Draws a sprite chosen by the value — a weapon icon, a status symbol, a state light.
Implements
Inherited Members
Namespace: Serenity.GameUi.Infrastructure.Representations
Assembly: Serenity.UnityGameUi.Infrastructure.dll
Syntax
public sealed class UnityHudIconSetRepresentation : UnityHudRepresentation, IHudRepresentation
Remarks
Matching is on the value's text, so it works for enums, booleans, ids and numbers alike without a separate entry type per value kind.
Constructors
UnityHudIconSetRepresentation()
Declaration
public UnityHudIconSetRepresentation()
Properties
HasThemedChrome
Whether this representation has chrome a theme could contribute to, so the builder only offers the choice where it changes anything.
Declaration
public override bool HasThemedChrome { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Overrides
Kind
Declaration
public override HudRepresentationKind Kind { get; }
Property Value
| Type | Description |
|---|---|
| HudRepresentationKind |
Overrides
Methods
CreateRenderer()
Creates the object that builds and drives this representation's visuals.
Declaration
public override IHudRepresentationRenderer CreateRenderer()
Returns
| Type | Description |
|---|---|
| IHudRepresentationRenderer | A renderer bound to this configuration. |