Do you know how to be sure?
To be sure what, that the widget has been added already? Check its reference’s validity, if valid -> show widget, if invalid -> add a new one.
Like this? already done and the error continues
That’s the general idea, yes. But you’re not getting / setting reference here so this will not work in this very case. Unless you meant it only as an example.
edit: is the error generated when you do component onHit by any chance?
yes i used it as an example, yes when i onit with the obj of this error
hey friend I was able to solve, I was using two references to the widget and so opened both at the same time…
Thank you for your help
I had a similar problem with the same error message, but I was calling Add to Viewport twice. This is how I solved it:
Sorry to bump a 4 year old thread but I had this issue and was never really able to “fix” it, I just used “add to player screen” rather than “viewport” and the error magically went away
Hi!
I’m having same issue.
What I try to do is show Quit Overlay menu on Main menu. But it doesn’t work. (UE 4.26)
Please check my BP.
PS: I used “add to player screen” or “add to viewport” and they don’t work.
do you still get the error if you don’t connect the “owning player”?
work for me too , thnkss