AAIController::GetDebugIcon
#include "AIController.h"
Access: public
Specifiers: virtualconstAIMODULE_API
Description
Returns the path to the icon texture used when rendering this AI controller in the in-game AI debug display (`showdebug AI`). Override to return a custom texture path for visual differentiation between AI types.
Caveats & Gotchas
- • The default implementation returns the path to the generic AI controller icon. The returned string must be a valid asset reference path (e.g. `/Engine/EditorResources/...`) for the debug renderer to load it.
- • This is queried every frame when the AI debug display is active. Avoid expensive string construction — return a static FString if possible.
Signature
AIMODULE_API virtual FString GetDebugIcon() const; Return Type
FString Example
Return a custom debug icon for this AI type C++
FString AMyAIController::GetDebugIcon() const
{
return TEXT("/Game/UI/Icons/BossAIIcon.BossAIIcon");
} Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?