FWorldContext - error LNK2019: unresolved external symbol

Hey chat,

I keep getting the following error in my plugin.

error LNK2019: unresolved external symbol “__declspec(dllimport) public: struct FWorldContext & __cdecl UEditorEngine::GetEditorWorldContext(bool)”

error LNK2019: unresolved external symbol “__declspec(dllimport) class UEditorEngine * GEditor”

I have added the Engine in the build.cs file

        PrivateDependencyModuleNames.AddRange(
            new string[]
            {
                "CoreUObject",
                "Engine",
                "Slate",
                "SlateCore",

I am not sure what is causing this.