Class ClickAreaSettings
- Namespace
- TDMaker.Unity.Authoring
- Assembly
- TDMaker.Unity.dll
Per-content override of the HUD's click target: an axis-aligned world rectangle around the entity position (the interior is clickable, the border is not) and a priority added to the kind's default (heroes 1, everything else 0). When several targets contain the click, the higher priority wins, then the lower world reference point.
public sealed class ClickAreaSettings
- Inheritance
-
ClickAreaSettings
- Inherited Members
Constructors
ClickAreaSettings()
public ClickAreaSettings()
Fields
customArea
public bool customArea
Field Value
offset
Rectangle centre relative to the entity position, in world units.
public Vector2 offset
Field Value
- Vector2
priorityBonus
Added to the default selection priority (heroes 1, other units, towers and slots 0).
public int priorityBonus
Field Value
size
Rectangle width and height in world units.
public Vector2 size
Field Value
- Vector2