I’m trying to create a reference to my gamemode (called TwinStickShooterCPPGameModeBase), but I’m getting a ton of errors that don’t make much sense.
The code I have looks like this:
UPROPERTY(BlueprintReadOnly, VisibleAnywhere, Category = "Hero Character")
ATwinStickShooterCPPGameModeBase* GameMode;
It’s in my HeroCharacter class.
These are only some of the errors because I’m getting so many.
Visual Studio doesn’t think anything is wrong, but obviously Unreal doesn’t like it. Any ideas or help is greatly appreciated!