Class MechanicVisual

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

View-side look of a keyed mechanic (chain, multi-target attack, region pulse, trap, mines, beam, transfer, reflection, life steal, body raising), collected while baking.

public sealed class MechanicVisual
Inheritance
MechanicVisual
Inherited Members

Constructors

MechanicVisual(Color, GameObject)

Creates a visual.

public MechanicVisual(Color color, GameObject vfx)

Parameters

color Color
vfx GameObject

MechanicVisual(Color, GameObject, float, float)

Creates a visual with a radius and a line width.

public MechanicVisual(Color color, GameObject vfx, float radius, float width)

Parameters

color Color
vfx GameObject
radius float
width float

MechanicVisual(Color, GameObject, float, float, MechanicVisualKind)

Creates a visual of a given kind.

public MechanicVisual(Color color, GameObject vfx, float radius, float width, MechanicVisualKind kind)

Parameters

color Color
vfx GameObject
radius float
width float
kind MechanicVisualKind

Properties

Color

Arc, beam or ring colour.

public Color Color { get; }

Property Value

Color

Kind

What the visual belongs to.

public MechanicVisualKind Kind { get; }

Property Value

MechanicVisualKind

Radius

Trap detection radius or beam range (zero when unused).

public float Radius { get; }

Property Value

float

Vfx

Optional pooled VFX prefab.

public GameObject Vfx { get; }

Property Value

GameObject

Width

Beam line width (zero uses the default).

public float Width { get; }

Property Value

float