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

Hi there,
I have had the same problem when I wrote

  1. private:
  2. UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = "Enemy")
  3. bool EnemyDirection;

but when I changed the access modifier from private to public the error was lost.
That works for me, so try it