Hey, I’ve been following a common inventory tutorial from youtube and seem to be stuck at this point. I can’t figure out how to set a variable in the user widget graph that I’ve created in the user widget designer. I’ve recorded a small clip to demonstrate my issue:
As above, it’s a ref to the actual widget, and you should not set it. If you set it, you would have lost access to that widget. You would have orphaned it. The vid is coming from a version of the Engine where this functionality was incorrectly exposed and was fixed since then Same for the icon, because it is, kind of, the same thing.
In the vid, you can clearly see they do Get it, watch it more closely:
I switched to the UE5 somewhat late - people talking about that eye was really confusing - whichever tutorial(s) it was, it did quite a bit of damage, heh. It’s innocent but perplexing, indeed. What’s more, one can obviously have a setter for a regular variable of the same type:
You should have seen me scratching my head when all the events from widgets not flagged as variables were gone… They started reverting the old functionality and now it’s truly inconsistent:
I guess there’s something wrong with icon textures my script generates. Now how to figure that out…is another problem. Thanks for troubleshooting this with me folks.
Oh, I was just being cheeky. I just made a quick png the same dimensions and wrote “F Me :(” on it in case it actually worked to do something so simple when I spent hours trying to figure this out.
There were actually a couple of issues at play. The image not displaying properly was the real issue, but the only fault I could find in the tutorial was the original issue I posted about so that’s (incorrectly) what I asked about. But with the collective suggestions I got here I realized the images I was generating relied on a material instead of a texture as the tutorial suggested. Ultimately all I really had to do was change a node to set the brush based on material instead of texture and change the referenced variable from a 2d texture to a material instance object.