How i do to override one variable in my widget bp from another blueprint ? I´m already try to get reference from my variable “code” in my widget bp (creating one reference from my widget bp variable “code” in a variable called “widget ref”) in my blueprint, and from there, “get code” variable. And, from there, set the “code” and assign my variable “override code” to “set code” node. This variable, “override code” is editable. The “code” from widget bp is editable too. Both are string. But, did not work. Something is missing, because the “code” variable in widget bp remains with the same default value.
Create the widget in player controller or character BP. You can access those easily in any BP so, lets say, you can call and promote those widget variables in player controller BP, then get player controller in the other BP you want to change the variable in, get that variable you created and set it to the new value.
Now it works, i did it slight different , because i do this in blueprint actor, not in game mode. I get one reference in my blueprint actor to my widget bp and i get from there my “override code”. However, now i get the error:
You have just created an Object of type KeypadUI but you have not set any value into it. So you are facing this “Accessed None” error. You can set this reference when you are creating this UI widget, like I did in my Game Mode as in answer above. Then you can use this reference in your Keypad BP using your gamemode to get access to widget variables, just like the answer posted by me above.
I created one variable, (KeyPadUIReference) and his type i choose my Widget BP (KeyPadUI). The value is automatically set to “none”. How i change that?
Ok…the problem is: i create my widget in my Blueprint Actor…My blueprint actor call the widget , and my blueprint actor set the “code”. How i do that in my blueprint actor? There is no way ? Because when i click in the “default value” of the widget reference, i get no option or asset to choose…
There Is no way to create my widget in player controller or charcter BP. I need to use my blueprint actor to do this, because using the character bp or anything else directly impacts throughout the structure of my entiry blueprint actor. And is a lot of variables,It is a nightmare, literally.
Like this is not functional, because when i star the game, i need to overlap a trigger first, and after that, add the widget. I created a custom EVENT to do this. See below:
Yep, i do like this and still get the same error “accessed none”. Before this i do not use the KeypadUIReference in begin play, and the error still coming…
Yep, is triggering because every time i overlap the trigger, thw widget comes in the screen. But, when i stop play, get the infamous error accessed none from…