Class ViewSettings

Namespace
TDMaker.Unity.Authoring
Assembly
TDMaker.Unity.dll

How an entity is presented. A prefab wins; otherwise a generated primitive sprite is used.

public sealed class ViewSettings
Inheritance
ViewSettings
Inherited Members

Constructors

ViewSettings()

public ViewSettings()

Fields

clickArea

Optional click rectangle and selection priority used by the HUD instead of the defaults for this kind of unit.

public ClickAreaSettings clickArea

Field Value

ClickAreaSettings

color

Fallback tint.

public Color color

Field Value

Color

driveAnimator

Drive an Animator found on the prefab with the standard parameters (Move, Speed, Attack, Hit, Die).

public bool driveAnimator

Field Value

bool

facing

How the view faces its movement direction.

public FacingMode facing

Field Value

FacingMode

hooks

Optional VFX prefabs and audio cues.

public PresentationHooks hooks

Field Value

PresentationHooks

prefab

Optional prefab instantiated (and pooled) for this entity.

public GameObject prefab

Field Value

GameObject

shaded

Generated sprites use the outlined, shaded style (false = flat silhouettes).

public bool shaded

Field Value

bool

shape

Fallback primitive shape.

public PrimitiveShape shape

Field Value

PrimitiveShape

showHealthBar

Whether a health bar is drawn for entities with health.

public bool showHealthBar

Field Value

bool

size

Fallback size in world units.

[Min(0.01)]
public float size

Field Value

float

viewKey

Optional view lookup key; blank uses the template id.

public string viewKey

Field Value

string