Hello everyone, so I was porting my sandbox project from UE4.26 to 5.0EA and got very strange problem. When I try to create widget in HUD class with owner of HUD class constructor creates valid widget and I can add it to the viewport just fine, but problem lays when I try to cast widget owner in widget blueprint. Get Owning Player Pawn always return None. I solved it by manually setting owner after construction using Set Owning Player with Local Player Controller set to Get Owning Player Controller of self.
If I remove Set Owning Player, Get Owning Player in widget returns None
I can probably push fix, but I’m out of SSD storage to compile UE5