PlayerState Casting not working after upgrade

Hello everyone,

since upgrading my project to Unreal Engine 5 casting to a PlayerState is not working anymore.
As you can see in the screenshot i have the variable “Player Array” from the gamestate which holds one Player State object from type “BP_PlayerState”.

Now if i want to cast to this BP_PlayerState the cast fails. This is weird because it did work before upgrading to ue5.
I only have one Class Named “BP_PlayerState”, so choosing the wrong cast should be unlikely.

Is this a bug? Is there a workaround? Thank you very much for your help!

I think this is the easiest workaround right now for accessing the Player Array.

There’s more issues than just the array not being usable in BP though like debugging not seeing them.

1 Like