Currently, i got stuck with a very strange problem: I cant override the tick function on a game mode-derivated class, even though i can do it on different projects, and of course on different classes in the same project.
This error can happen if the compiler does not detect a function you define in your .h. Like clt2488 said, maybe providing the definition/declaration will help solving your problem!
My function declaration is “virtual void Tick(float DelatSeconds) override;”,and is under private. Even though in AGameMode.h the tick function is declared under public:, it’s not a problem if I override it on the private or protected section of MyGameMode subclass, since in c++ an inherited function can be overrided under all visibility specifiers that have an higher data protection/encapsulation (As example, public—>private/protected = OK, private/protected---->public = Error).
He have had my same exact problem, the solution was adding “AIModule” in the MyGameBuild .cs file: PublicDependencyModuleNames.AddRange(new string[] { “Core”, “CoreUObject”, “Engine”, “InputCore”,
—>“AIModule”<— });