cannot open source file "UDynamicMesh.h"

I can’t get it to find UDynamicMesh.h for some reason. Per unreal.DynamicMesh — Unreal Python 5.1 (Experimental) documentation
it’s in the GeometryFramework module.

If I search my project, UDynamicMesh.h shows up under UE5/source/runtime/GemeotryFramework.

I’m using UE 5.2.

Error:cannot open source file “UDynamicMesh.h”

What am I doing wrong?

#include “UDynamicMesh.h”

Build.cs
PrivateDependencyModuleNames.AddRange(
new string[]
{
“CoreUObject”,
“Engine”,
“Slate”,
“SlateCore”,
“UnrealEd”,
“KismetCompiler”,
“AssetRegistry”,
“BlueprintGraph”,
// … add private dependencies that you statically link with here …
“GraphEditor”,
“UMG”,
//“GeometryScriptingEditor”,
“GeometryFramework”,
}
);

Perhaps the slashes are interfering in the build file syntax?

Try rebuilding your project and see if the error goes away.

Here is a mini project with just 1 actor, the module and an include of UDynamic inside of the actor. Compiles no problem, just regenerate and test.

GeoFrame.zip (12.3 KB)

I removed the comment lines. Rebuilt solution. Still same error. :frowning:

I remember someone saying something about certain folders, like intermediate, can be deleted and regenerated? Think that’d help? If so, which folders?

Just double check if any .h or .cpp files landed in the Intermediate by accident. All c++ files should be in source.

Temp folders:

  • .vs
  • Binaries
  • Intermediate
  • DerivedDataCache
  • Saved

Temp files:
.vsconfig
your .sln file

Regeneration should rebuild all of the above.

Edit: are you maybe adding #include "UDynamicMesh.h" under the .generated file?

.generated needs to be the last include for it to compile correctly

Tried your build config and it compiles ok even with the slashes

“Can’t find solution file”
How do I regenerate that?

Right click your .uproject file and regenerate the project.

Cool, thanks, never knew that was a thing. :slight_smile:
Testing now.

1 Like

That actually worked. Thanks for the help!

How do you guys get anything done with non-stop bugs with the editor? -__-

I constantly have to close VS because it has “too many errors for intellicense” to work…
And “Hot reloading” in Unreal breaks every 2-3 attempts and requires shutting the program done and restarting.

I just run my project without debugging most of the time.
I usually close the editor and run the project from the IDE if I’m not seeing positive changes, and I don’t use live coding.

Ya, well I can’t do that. I need all the help I can get to barely fumble around. I quite literally gave up on this part of the project entirely… until I remembered ChatGPT can code.
While it is terrible, after a few tries, it gets me close enough where I can move forward… and I certainly couldn’t do that without context sensitive help. :smiley:

Anyway, Thanks again for the help.

No problem. I’m sure you’ll gain confidence in you Unreal coding skill once you get a few prototypes up and running.

:smiley:
I’m just here to make a single addon.

It will translate Blender’s Geometry Node tree into Unreal’s Geometry scripting Blueprint.

Talk about jumping into the deep end…

Part of a very long project to replace all video game assets with generative programs. :slight_smile:
Already made a pretty decent humanoid generator in Blender Geometry nodes. (over 18,000 nodes…)

I’ve got video and renderings if we’re allowed to post outside links and if you would like to see. :slight_smile:

1 Like