Units

Image showing the TargetingHandler component, as seen in the Entity Inspector.

Targeting Handler Overview

Functionality


Setting Up Your Targeting Handler

Unit Collider Configuration

Image showing the collision layers used for a unit collider, as seen in the Entity Inspector.

If you have not set up your PhysX Collision Layers or Groups yet. Refer to the Setting Up Your Project Environment guide.


API

// UnitIncomingEventBus
void Possess(AZ::EntityId possessingController) override;

void DePossess() override;

AZ::EntityId GetController() override { return owningController; };

AZStd::string GetUniqueName() override { return uniqueName; };

// Local Methods
virtual void SetUniqueName();

Extending Targeting Handler