This is the multi-page printable view of this section. Click here to print.

Return to the regular view of this page.

Unit Manager

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

Targeting Handler Overview

Functionality


Setting Up Your Targeting Handler


API

// GameManagerGlobalEventBus
void OnSetupManagers() override;
void OnShutdownManagers() override;
void OnStartupComplete() override;

void OnEnterStandby() override;
void OnExitStandby() override;

// UnitManagerIncomingEventBus
void RequestSpawnNewUnit(AZ::EntityId callingEntityId, AzFramework::Scripts::SpawnableScriptAssetRef unitPrefab, AZ::EntityId spawnParentEntityId) override;

bool CheckIsUnit(AZ::EntityId unitId) override;

Extending Targeting Handler