The title says it all. Not sure what I’m doing wrong.
Created a new Editor plugin, then added dependency entries for:
- Core
- CoreUObject
- Engine
- Slate
- SlateCore
- InputCore
- UnrealEd
- RHI
Tried those as both public and private dependencies.
Compiles just fine (under DebugGame Editor), but the linker spits this out:
Module.MeshThumbnailGrabber.cpp.obj : error LNK2019: unresolved external symbol "public: class FSlateTexture2DRHIRef * __cdecl FAssetThumbnailPool::AccessTexture(class FAssetData const &,unsigned int,unsigned int)" (?AccessTexture@FAssetThumbnailPool@@QEAAPEAVFSlateTexture2DRHIRef@@AEBVFAssetData@@II@Z) referenced in function "protected: void __cdecl UMeshAssetListener::OnAssetAdded(class FAssetData const &)" (?OnAssetAdded@UMeshAssetListener@@IEAAXAEBVFAssetData@@@Z)
2>D:\Projects\TempCrap\Continuum\Plugins\MeshThumbnailGrabber\Binaries\Win64\UE4Editor-MeshThumbnailGrabber-Win64-DebugGame.dll : fatal error LNK1120: 1 unresolved externals
…which is in reference to the line auto Texture = thumbnailPool->AccessTexture(AssetData, 256, 256);
A quick look at the API Reference for FAssetThumbnailPool::AccessTexture shows that I should be including the UnrealEd module, which I clearly am doing. So I don’t get it.
Any ideas?