I can't find where the variable is being set. I'm going crazy


This is a custom button. In construct it sets his setText(Text) value with the value inside of JodidoTextoBoton as you can see… so this is working becouse I have 4 buttons and each one sets his custom text but I cant find where did I set the values of JodidoTextoBoton becouse I want to change those values.
I’ve been through everything and I can’t find it, I’ve used find results using “find in all blueprints” and nothing comes up. I don’t know if it’s a rookie mistake or I’m starting to think something is broken or maybe a bug. Please I hope someone can help me


It’s a default value perhaps?

Hi, thanks for answer . Default value of JodidoTextoBoton = “Text”
so I have 4 buttons and that value is changing so is being set from someplace

Is the parent class the default button.h? Perhaps it’s derived from another class where the value is being set outside of the current button?


Parent class is user widget. I did create a new blueprint User Widget


this class only have a text component.

I mean the “Text Botton Opciones” button not the containing widget. The button (or it’s derived parent) is the part that could have extra logic behind it.


This is the menu widget where I use the custom button_opciones

Have you checked the login in the custom button_opciones?


I have all logic disconected to simplify

The logic could be inside of the buttons themselves not the widgets. Find the blueprint with the button definition and see there.

Try to set the text outside the custom button with an exposed variable.

image

Also, you could add a setter function to set value at runtime:

I hope it’ll be helpful to you.

My Products

1 Like

Hello, thanks for the answer. I am almost sure that this was my approach and that is what I did. The mystery here is that the exposed variable does not appear, it is as if it did not exist, but in the construct of the custom button, where I set the custom name of each button, it is working and I have no idea where it is retrieving those values ​​or from where you are changing those values.



the button is working. each button takes his own value. But the question is from where. who or from where is setting that value