I’m having a tough time figuring this one out. I have been following some tutorials online for making player UI, and one thing that is used is a player map of the ui widget I made.
Then I have an init function that appears to work correctly. The playerHUDMap Length (or size) before the init function is 0, and after my character spawns with a spawn pad it’s a size of 1, which is correct.
Then in my other function, I’m calling to update the UI. There are two if statements that check if the persistent player data is available (this one succeeds) and the other if statement to try to grab the player hud widget reference (this one fails). This fails because the map is showing a size of 0 at this point. But this function is called after I’m spawned in and it was 1 earlier from the Print functions outputs outside of this Update function.
Any idea of what is happening that the map is getting cleared or not saving the player with their HUD ui widget?


