Targeting¶
Collectors find ability systems through their colliders and keep those passing a TargetFilter:
var enemies = new TargetFilter { Requirement = new GameplayTagQuery(requireAll: enemyFaction, exclude: deadState), MaxTargets = 3 };
var hits = context.CollectTargets(new ConeTargets(range: 3f, angle: 120f), enemies);
context.ApplyEffectToTargets(context.MakeOutgoingSpec(slash), hits);
Collectors and filters are serializable: a [SerializeReference, SubclassSelector] TargetCollector field shows a type picker.
For areas aimed by the player, await context.WaitGroundTarget(options) shows a disc (or your prefab) under the pointer and
completes on InputConfirm() with the targets inside and the point (TryGetPoint), or with null on InputCancel().
The pointer comes from ArcanaPointer.ScreenPosition: the Input Manager by default, replaceable for gamepads or touch.