I have made an object reference variable in my HUD class to my custom player controller called “MyCustomPlayerController”.
I want my HUD to get a variable from it, but nothing happens because the reference is set to “none”, how can I assign it at the “Begin Play Event”?
I cannot use Get Owning Player Controller for referring to the custom player controller.
The solution to my problem was:
HUD already has refrence, you can get it via Get Owning Player Controller
If it didnt worked means HUD was not assigned to player controller, you need to set HUD class in PlayerController, it will spawn it and set owner