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
colorColorvfxGameObject
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
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
colorColorvfxGameObjectradiusfloatwidthfloatkindMechanicVisualKind
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
Radius
Trap detection radius or beam range (zero when unused).
public float Radius { get; }
Property Value
Vfx
Optional pooled VFX prefab.
public GameObject Vfx { get; }
Property Value
- GameObject
Width
Beam line width (zero uses the default).
public float Width { get; }