UGeometryCacheComponent

Hi! I am using a Geometry Cache component in a blueprint actor and now I am moving everything to native code. The thing is that I cant make the engine find the include for using it.
Online reference says

Module GeometryCache
Include #include “GeometryCacheComponent.h”

I included “GeometryCacheComponent.h” but my variable still unknown and just in case added “GeometryCache” into my build.cs (I dont know if this is right or wrong)

Any help? :slight_smile:

ummm the only way I made it work is by putting the FULL long path:

#include “C:/Program Files/Epic Games/UE_4.26/Engine/Plugins/Experimental/GeometryCache/Source/GeometryCache/Classes/GeometryCacheComponent.h”

And of course add “GeometryCache” in the build.cs was needed too.

anyone knows why I have to declare the full path?

Stuck at the same point. Tried everything, don’t know how to include this header file properly to work with GeometryCacheComponents from C++.

image

Added these to the .build file but doesn’t work

PrivateDependencyModuleNames.AddRange(new string[] { GeometryCache });
PrivateIncludePathModuleNames.AddRange(new string[] { GeometryCache });

This thing is active in the editor:

1 Like

image

1 Like