I’m desperate. I don’t understand what is going on thought I got it all right. So my issue is that I’m simply casting to my widget blueprint ehere i have a function called “silent”.made a variable that is a reference to that Widget and yet it seems to be broken! It always Fails. Please help me. I don’t know what I got wrong.
I’m still confused by this node which says that I don’t Need to reference it. In another blueprint where I’m casting to another blueprint everything works why not here then!?
Tahnks for replies.
Found it. the trick is to use all widgets of class. if someone knows something about the blue node then feel free to leave a comment
The problem you’re experiencing is not with the cast, but with the object reference.
Your “Menurefer” is blank, it is not a valid reference, nothing has been assigned to it.
It also appears that your Menurefer is of type “Menu”, which makes the cast redundant. That’s why you’re getting the blue note on it.
If you do an IsValid check on your “Menurefer”, it will go to false.
The reason your “Get all widgets of class” is giving you results is due to it searching every object in the scene and returns you a valid array of every reference for those objects.
How to fix:
When you do your “Create widget” call for “Menu”, set the reference of the created object to “Menurefer”. Now you will have a valid reference inside of your “Menurefer”.