Can't reference a NavMeshBoundsVolume

Hello everyone,

I’m trying to reference a ANavMeshBoundsVolume inside one of my Classes, but I always got this error:


GreatGame.gen.cpp.obj : error LNK2019: symbole externe non r?solu "__declspec(dllimport) class UClass * __cdecl Z_Construct_UClass_ANavMeshBoundsVolume_NoRegister(void)" (__imp_?Z_Construct_UClass_ANavMeshBoundsVolume_NoRegister@@YAPEAVUClass@@XZ) r?f?renc? dans la fonction "void __cdecl `dynamic initializer for 'public: static struct UE4CodeGen_Private::FObjectPropertyParams const Z_Construct_UClass_AGreatGame_Statics::NewProp_navMeshBoundsVolume''(void)" (??__E?NewProp_navMeshBoundsVolume@Z_Construct_UClass_AGreatGame_Statics@@2UFObjectPropertyParams@UE4CodeGen_Private@@B@@YAXXZ)

Here is the concerned code :


#pragma once

#include "CoreMinimal.h"
#include "GameFramework/Actor.h"
#include "Saver/Saver.h"
#include "Runtime/NavigationSystem/Public/NavMesh/NavMeshBoundsVolume.h"

#include "GreatGame.generated.h"

UCLASS()
class ETERNALPROPHECY_API AGreatGame : public AActor
{
    GENERATED_BODY()

public:

    UPROPERTY(BlueprintReadWrite)
        USaver* saver;

    UPROPERTY(BlueprintReadWrite, EditAnyWhere, meta = (ExposeOnSpawn = true))
        ANavMeshBoundsVolume* navMeshBoundsVolume;

    AGreatGame();

protected:
    virtual void BeginPlay() override;

public:    
    virtual void Tick(float DeltaTime) override;

};

What am I doing wrong ?

Thanks in advance.

Make sure to add the NavigationSystem module to your dependencies in your *.Build.cs file.


 PublicDependencyModuleNames.Add("NavigationSystem");  
 

Nice!

I feel a bit stupid it was so easy, but I really didn’t find anything about this anywhere.

Thanks a lot.