WTF - Could not find a variable named PlayerName in PlayerState after upgrading to UE4.25-4.26

I was using UE4.24 and everything worked great so I finally upgraded my project to UE4.26 and now I get this error “Could not find a variable named “PlayerName” in ‘PlayerState’”

Why did unreal engine remove the PayerName variable from the PlayerState? or is it just me? lol

It’s been made private as a property. You can still access it by calling the function “GetPlayerName().”

3 Likes

Thank you!!!

You’re welcome!