Skip to content

TargetManager Add Target

Add one target to a BaseTargetManager, such as an Offscreen Indicator, Target Indicator, Radar, or Tilemap Minimap.

Parameters

Parameter Description
Manager The target manager component that will track the target.
Target The GameObject to track.
Indicator Prefab Optional prefab override. If empty, the manager uses its default prefab.

Typical Use

  1. Reference the manager component you want to use.
  2. Set the target GameObject.
  3. Optionally override the prefab.
  4. Run the action to spawn and register the widget.

Notes

  • If Manager or Target is missing, the action does nothing.
  • Re-adding an already tracked target updates its style and reactivates it instead of spawning a duplicate.
  • See the Target Managers Guide for setup examples.