I have created a public integer Variable called UI_Int in UMG with default value of 0.
On button click I am setting UI_Int value to 7
How do I access the value of UI_Int in my class blueprint
Although I have gone through some similar questions in the forum about blueprint communication, I still not able to get it right.
Could you please help me out possible with images.I am new to this and am really interested to learn it.
After trying your said method I am only able to get default value of variable(UI_Int) which is 0.How do I get its value as 7 once the button is clicked.
This is what I want
create a variable (UI_Int) in UMG and set its value to 0 (I am able to do this)
On button click change it value to 7 (I am able to do this)
Return UI_int value as 7 in my class blueprint (which is returning 0 currently instead of 7)
Am I missing something in your earlier comments?
Appreciate your help
Thank You
store the widget into a variable rather than simply dragging off the create node like shown above. After the variable is changed, grab the reference and pull off that to get the “UI Int” value. Pulling the value before you change it will give you default.