Varable of he (text box) in a widget type problem

Hello, i was following a guide on how to make a level list and now i am completely stuck in the end of everything because of 1 simple thing in unreal engine,. (the guide is 2 years old)

so this is what guide is showing.

and this is what i see when i do this.

And theres pretty much nothing i can do about it in this unreal version, i tried many things and it just doesnt work.
how can i change the (button text variable) to integer type so i could connect it?
Please help me i really need this type of level select list :frowning:

The thing is you need to create a property and then assign the property to the text widget. So in the graph of UMG you are working in, create a text type variable. You bind that variable to the text widget you want to change. You can see bind button to the right of text box from which you assign text to widget in designer tab. After binding now whenever you change that text, text widget also changes the text.

The example that you have show is using an integer variable. If you want to do it that way, create integer type variable. Click on bind and create binding. This will create a binding function. All you have to do is get that integer and convert it text.

I hope this helped.

Thanks for your answer! is this what you ment?

i can do it like this but somewhy every level i pick is the same 0 index one, but i guess the problem is somewhere else.

nevermind im stupid forgot to change the on button pressed itself.
EVERYTHING IS WORKING PERFECTLY THANK YOU SO MUCH YOU SAVED MY LIFE! :slight_smile:

Glad it worked out :slight_smile:

Just want to point out something here. This is not incorrect but just a repeat step involved. So you are getting variable “LevelSelectButton” and then Setting it to itself again. You can remove Set here and plug the get “LevelSelectButton” Directly to 'ToText(int)" node.