As that title says, I am trying to access some Boolean variables stored in my widget blueprint, from my game mode blueprint and vice versa. I have tried countless methods and nothing seems to work after hours and hours researching on the internet, and I cant seem to be able to reference any kind of blueprint from another blueprint.
Can you provide a screenshot of the error? Also please show what’s in GetUINewGame and GetDifficulty.
I’m not sure what GetUINewGame is supposed to do. You have a variable for UINewGame, a function to get UINewGame that you need a reference to UINewGame to call, and a second variable also for UINewGame.
After requiring that this unrelated piece of code works, you then call a GetDifficulty function within yourself, promoting the result of that to a variable that is also contained within yourself.
I’m having hard time reading this.
The booleans will return all false because when you create widget you leave them all false (Create Widget Node).
You should definitely delete the function if you aren’t using it. Also the function itself wouldn’t to anything. All it does is cast self into a UI_NewGame, but to call this function the variable would already have to be of type UI_NewGame.
You also should just use the enum you already have for difficulty. Get rid of all the bools.

You can remove the nested if statements with a select node:
Also as is you’re only creating 3 enemies no matter the difficulty- you need to plug the villager count into the for loop last index.
Hmmm I see, I wasnt sure how to use the enum to state which difficulty is selected in the UI_NewGame, how would I be able to do that?
and yes I was trying to figure out how to set the villager numbers but couldnt test if it worked due to the booleans always returning false haha
could be the difficulty functions, I have 2, 1 is each BP because again I cant communicate between blueprints, but they both store and read from the same enum so this should be an issue i think
Are you trying to access a widget on client from GameMode ?
To my knowledge (which is not alot ) , GameMode only exists on server and widgets only exist on each clients and not on server . maybe this is why you cant access variables on a widget from your GameMode .
yes that is what I am trying to do, my knowledge is not a lot either but if they do in fact work on server or client, they should have someway to communicate … some how










