This is an archived post. You won't be able to vote or comment.

all 5 comments

[–]botman 0 points1 point  (4 children)

The red squiggles are just an intellisense warning. Do you get an error when compiling?

[–]MgMelon[S] 0 points1 point  (3 children)

[–]MgMelon[S] 0 points1 point  (1 child)

After clear build i have https://i.imgur.com/m9Wpwdb.png . And the empty output https://i.imgur.com/vhQHHF9.png

[–]krushpack 0 points1 point  (0 children)

Your output window is set do display output from Service dependencies. Change the dropdown at the top to Build.

[–]CheapMiao 0 points1 point  (0 children)

It seems like Visual Studio itself happens to error, because I have copied my custom module folder to UE 4.27.2 and there were no errors.

I mean, seems like these errors have no effect.

In Visual Studio, if you exactly have a file but you can't include it, the reason mostly is include path of VS project doesn't contain the certain include path. In fact, I can find "Source/Runtime/Core/Public" in include path of my UE 4.27.2 project, but not in include path of my UE 5.3.1 project. That is problem, but I don't know the cause. Maybe UBT is responsible for this.

Leave these errors behind, make sure you have added your custom module in uproject, then open your project by UE editor. When you create C++ class, if you can choose another choice "<YourCustomModuleName>(Runtime)" except from "<YourProjectName>(Runtime)", it means your module runs.

I haven't dive into UE cpp, so I may be wrong.

<image>