Hello there,
I made my own subclass-Blueprint of the standard HUD-Class and tried to fire a simple print with the help of the BeginPlay-Event. For some reason this doesn’t work. I never had this problem before. Do you know what could be causing this?
Thanks in advance.
Hey. Yes, I specified the HUD class in the game mode. The same print node fires in the Construction Script of that HUD class but the BeginPlay Event doesn’t work.
How about a delay after the begin play? ( grasping at straws… )
Ok, Delay didn’t work. Maybe I should have mentioned that I did test it in Multiplayer in “Play as client” mode
But I did find out that it I play “As a listen Server” it works on the server player as well as all the clients which confuses me even more. I thought the HUD was purely a client thing.
Did you specify your HUD in a new game mode, and make that game mode the default for the level or project?
No problem. Thanks for your help.
Ah, multiplayer, I have to bail then. Not my specialty, I’m afraid…
Find Solution?
I am having same issue…never had this happen before
Project settings and game mode settings all point to the correct HUD
Interesting enough, I have another Game Mode AND Game Instance AND HUD - when I switch all project settings for that one, it will print BeginPlay Debug Print String, but I switch project settings to the otherGame Instance, Game Mode, HUD etc., and everything will begin play except HUD??
Not multiplayer
Ok, I think I figured it out -
My other Game Mode, was for a game I started making years ago - and I was making it for multiplayer
It has been many years and I have not touched multiplayer, and my other game mode wassingle player for a different game (all in same project)
In the multiplayer game mode, I had the initialize HUD for player node and did not use it in my other game mode
If I delete that node, HUD will spawn
I have forgetten everything multiplayer, and need to relearn - but here is solution if anyone else encounters this - or me again when I forget
With the Initialize HUD for Player, I had to specifically spawn actor with my custom HUD class to get it to print on beginplay
I found this node and it sawned a HUD, but not sure if this is correct - need to do some more recent learning on multiplayer
which, I find strange, cause the code from my other game did not do this??
So, I am not for certain this is the correct way to do it??