Unresolvable external symbols about ULandscapeEditorObject::CreateImportLayersInfo/ULandscapeEditorObject::CreateNewLayersInfo

Now, I create landscape by myself plugin, and i used the function CreateImportLayersInfo of ULandscapeEditorObject, and it reported the following errors.

'Unresolvable external symbols “public: enum ELandscapeImportResult __cdecl ULandscapeEditorObject::CreateImportLayersInfo(class TArray<struct FLandscapeImportLayerInfo,class TSizedDefaultAllocator<32> > &)” (?CreateImportLayersInfo@ULandscapeEditorObject@@QEAA?AW4ELandscapeImportResult@@AEAV?$TArray@UFLandscapeImportLayerInfo@@V?$TSizedDefaultAllocator@$0CA@@@@@@Z),function “private: bool __cdecl ULandscapeImporter::CreateLandscapeFromHeightmap(class FString &,class FString &,class FString &,float,float,float,float,float,float,int)” (?CreateLandscapeFromHeightmap@ULandscapeImporter@@AEAA_NAEAVFString@@00MMMMMMH@Z)…

Soft environment: UNREAL5.4 + VS2022.

a. I have added the modula ’ LandscapeEditor’ into my .build.cs.
b. i checked the documentation which has those functions and class ‘ULandscapeEditor’.

Please give me a help please if you have encountered this issue or know something.

Regards

I’m also having the same problem, did it finally solve it? How to fix it, thanks

Just make that function implementation from engine source code to your code block, which should be not complex.