Class UnityHudSpriteRepresentation
Draws a fixed sprite that reads no value at all — a frame around the ammo counter, a divider, a crest.
Implements
Inherited Members
Namespace: Serenity.GameUi.Infrastructure.Representations
Assembly: Serenity.UnityGameUi.Infrastructure.dll
Syntax
public sealed class UnityHudSpriteRepresentation : UnityHudRepresentation, IHudRepresentation
Remarks
The one representation exempt from the value-binding rule
(HudRepresentationRules.RequiresValueBinding): decoration has no data, and demanding a binding
would force every decorative element to invent some to ignore. It also takes nothing from the theme —
decoration is game art through and through, so there is no fallback chrome to follow.
Constructors
UnityHudSpriteRepresentation()
Declaration
public UnityHudSpriteRepresentation()
Properties
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. |