I’m having a bit of trouble understanding why I can’t make a class that derives off of ANavMeshBoundsVolume. When I create the class, I get Linker errors which I wasn’t expecting and am not really sure about how to resolve. The errors are:
// Fill out your copyright notice in the Description page of Project Settings.
#include "TheRelic.h"
#include "MyNavMeshBoundsVolume.h"
The generated header file is
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "AI/Navigation/NavMeshBoundsVolume.h"
#include "MyNavMeshBoundsVolume.generated.h"
/**
*
*/
UCLASS()
class THERELIC_API AMyNavMeshBoundsVolume : public ANavMeshBoundsVolume
{
GENERATED_BODY()
};
Any thoughts about why this is? I suspect there’s some macro or keyword I don’t know about.
Hi, I suspect you are missing a module from your Build.cs file. According to this link wiki you may have to add “AIModule” in the project dependencies.
If it’s not AIModule it’s probably another one but I’m almost sure you are just missing a dependency there.
I tried that and it still didn’t compile. It seemed that ANavMeshBoundsVolume was in the Core engine anyway, unless I’m misunderstood how the module system works.
Yeah I did that as well and still have the same linker error with the Super:: command. Is there a good way of finding which module is required? I seem to struggle to find any resources which indicates what class belongs to what module.