Hi there,
I have had the same problem when I wrote
- …
private:
UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = "Enemy")
bool EnemyDirection;
- …
but when I changed the access modifier from private
to public
the error was lost.
That works for me, so try it