compiler-errorsunreal-engine4launching-application

I'm unable to launch my unreal game with error code 5


So I've set up a test game and added some widgets and c++ to it, and when I play my game everything works fine. However when I try and launch my game i get this error:

LogPlayLevel: Error: ERROR: Unable to instantiate module 'UnrealEd': Unable to instantiate UnrealEd module for non-editor targets.

and i just don't know how to solve it. I've tried to find answers however it doesn't seem like anyone else gets this.

I'm still new to unreal so any help would be appreciated.


Solution

  • I had the same problem and found a fix that worked for me.

    The .uproject file contains a list of additional dependencies, for example:

    "AdditionalDependencies": [
                "Engine",
                "UnrealEd",
                "UMGEditor",
                "UMG"
            ]
    

    From those four i had to remove both UnrealEd and UMGEditor which depends on the former.

    I didn't reproduce this situation in a clean project, but I suspect it to be either a widget editor bug, or the change occured while building with incorrect headers.