Class UnityHudTextualRepresentation
Base for the representations whose whole output is a piece of text, so they can share one renderer and differ only in how they turn the bound value into a string.
Inheritance
UnityHudTextualRepresentation
Inherited Members
Namespace: Serenity.GameUi.Infrastructure.Representations
Assembly: Serenity.UnityGameUi.Infrastructure.dll
Syntax
public abstract class UnityHudTextualRepresentation : UnityHudRepresentation, IHudTextRepresentation, IHudRepresentation
Constructors
UnityHudTextualRepresentation()
Declaration
protected UnityHudTextualRepresentation()
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. |
Overrides
FormatValue(CompiledHudBinding)
Renders the binding's current value as display text, or the binding's fallback when it cannot be read.
Declaration
public abstract string FormatValue(CompiledHudBinding binding)
Parameters
| Type | Name | Description |
|---|---|---|
| CompiledHudBinding | binding | The element's value binding. |
Returns
| Type | Description |
|---|---|
| string | The text to show. |