Error when building: -waitmutex" exited with code 5 . Please verify that you have sufficient rights to run this command

Hi, I have this problem too. Finally, I fingure it out by moving #include "YourActorName.generated.h" to he bottom of
header file list.
Hope this help.

Thank you!

It appears that this just means “an error without an error code occurred”. For me, I just needed to go to the Output tab in Visual Studio, with show output from: Build, to see specific detail on what the error actually was. My error ended up being to do with UPROPERTY specifiers.

it worked for me when i changed the UPROPERTY to a float instead of an uint32. It didn’t like uint32 for some reason…
( except for when i made it act like a bool by doing gunType : 1 , but that is not the behavior i wanted.)

…Something else I had to do to fix this sort of error in the past was by patching/removing old code in a class generated by unreal engine using an old version of the engine. It was code in a vehicle physics car from an unreal engine template.