Hey there,
I’m trying to extend the AI Perception System to use some new actors to be noticed by the system (UAISystem::OnActorSpawned notifies only about Pawns so far).
I’m simply extending the UAIPerceptionSystem:
Header:
#pragma once
#include "Perception/AIPerceptionSystem.h"
#include "MyAIPerceptionSystem.generated.h"
UCLASS()
class UMyAIPerceptionSystem : public UAIPerceptionSystem
{
GENERATED_BODY()
};
I get errors in the AIPerceptionSystem.h when compiling:
Runtime/AIModule/Classes/Perception/AIPerceptionSystem.h:102:30: error: incomplete type 'UAISense' named in nested name specifier
Runtime/AIModule/Classes/Perception/AIPerceptionSystem.h:102:84: error: expected '(' for function-style cast or type construction
Runtime/AIModule/Classes/Perception/AIPerceptionSystem.h:102:86: error: expected expression
Runtime/AIModule/Classes/Perception/AIPerceptionSystem.h:208:23: error: incomplete type 'UAISense' named in nested name specifier
Runtime/AIModule/Classes/Perception/AIPerceptionSystem.h:208:44: error: 'FSenseClass' does not refer to a value
Runtime/AIModule/Classes/Perception/AIPerceptionSystem.h:208:57: error: expected expression
Runtime/AIModule/Classes/Perception/AIPerceptionSystem.h:212:13: error: incomplete type 'UAISense' named in nested name specifier
Runtime/AIModule/Classes/Perception/AIPerceptionSystem.h:212:34: error: 'FSenseClass' does not refer to a value
Runtime/AIModule/Classes/Perception/AIPerceptionSystem.h:212:47: error: expected expression
Since it’s engine code, I’ve got no idea what’s happening ^^.
Any ideas?