How to use a blueprint variable in an other blueprint

hi i would like to know if it possible to get a variable from a blueprint called ex mainmenu_login in a blueprint called ex mainmenu_lobby

ex: in mainmenu_login i have a playerrank variable and i want to use this playerrank variable in the mainmenu_lobby blueprint thanks to anyone that reply to this question

You should create such variables in a common BP, like Game Instance or Player Controller, and then get/set from it whenever you need.

So using whatever blueprints that gets your connection thing, you then get your game mode (for example), cast it properly (mine is called GM), then you place the content in a variable in the game mode.

Then later, in another blueprint, you can get the game mode again, cast it again, and use the variable you’ve populated earlier from server data.

Populating:

Using:

Hey i did this but the cast keep failing Screenshot by Lightshot tell me if you want more screen shot i would like your help

mainmenustuff is your game instance?

85135-gameinstance2.png

where can i define this ?

Project settings / Maps & Modes.

thanks you so much for you help :smiley: