Unreal Vs C++:在我的插件文件中的#include“.h”之后找不到#Include“.generated.h”

问题描述 投票:0回答:0

我正在遵循有关如何在虚幻引擎中制作有限状态机插件的指南。当我将我的插件中的 .h 文件#include 到我的 Unreal C++ 类中时,我遇到了一个问题。问题是当我#include“StateManagerComponent.h”(插件类)到“GoblinFSM.h”(虚幻类)及其全部相关文件路径时,我的代码无法找到“StateManagerComponent.generated.h”

Added Full File Path to include StateManagerComponent.h

Resulting in StateManagerComponent.generated.h no longer being found

我已经将两个路径添加到项目的 VC++ 目录中,希望我的项目能够同时找到 StateManagerComponent.generated.h 文件和 StateManagerComponent.h 文件。不幸的是,它只给了我大约 10,000 个错误。真的不知道从这里去哪里。

c++ plugins include unreal-engine5
© www.soinside.com 2019 - 2024. All rights reserved.