Make widget button set variable inside level blueprint?
My widget has buttons and all of them would set a variable to a new integer value. I have tried using a reference of the widget and a get node branched off of the reference, but the value never commits to what it is set at. The widget is in a separate level, so the value is set, then the user is transported into the main level w/ level blueprint that inhibits the set value from the referenced widget to the get int value of the variable. Anyone know what I am doing wrong?
asked Dec 16 '15 at 02:20 AM in Blueprint Scripting
don't store long term variables in the level blueprint. if you want to transfer variables to another level, store the variable in a gameinstance or savegame.
try not to use the level blueprint unless you want to do something unique, which is only done in that level, and does not affect anything in any other level. even then, its usually a better idea to use actors placed in the level rather than putting stuff in the level blueprint.
Follow this question
Once you sign in you will be able to subscribe for any updates here