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
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
facing
How the view faces its movement direction.
public FacingMode facing
Field Value
hooks
Optional VFX prefabs and audio cues.
public PresentationHooks hooks
Field Value
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
shape
Fallback primitive shape.
public PrimitiveShape shape
Field Value
showHealthBar
Whether a health bar is drawn for entities with health.
public bool showHealthBar
Field Value
size
Fallback size in world units.
[Min(0.01)]
public float size
Field Value
viewKey
Optional view lookup key; blank uses the template id.
public string viewKey