Noob question - trying to make first BP function, getting LNK2019 error

Hi, I’m trying to make a very first BP function in c++, the function should be just to call FShaderPipelineCache::PauseBatching(). It is simple as it could be. But I’m getting LNK2019 error and can’t figure why. I’m sure the solution would be the most simple thing. So I guess asking you would be the fastest. Thanks!


Error LNK2019 unresolved external symbol “__declspec(dllimport) public: static void __cdecl FShaderPipelineCache::PauseBatching(void)” (_imp?PauseBatching@FShaderPipelineCache@@SAXXZ) referenced in function “private: void __cdecl UTestFunctionLibrary::StopCacheFunction(void)” (?StopCacheFunction@UTestFunctionLibrary@@AEAAXXZ)

members of a function library should be static, and you are missing an module include to your Build.cs of ‘RenderCore’ module which is where *FShaderPipelineCache *lives in.

So easy, thanks a lot man!