Problem on Widget show/Hide

Hi, I have a small problem on the display of a widget,

I created the second Widget to make a tree skill and I have created a button which allows me to close this window when the player to end.

I then placed this Widget in main Widget in game, by activating hidden

In my Blueprint, I created these

I conceive although to put two “Add To Viewport” is useless but the problem it is that if I remove it then when I am going to use my touch to reveal him, the first time he seems good, but the second time there is just my mouse which appears. I found only this solution at the moment, if you could enlighten me on my error.

Melgir

Remove from parent needs a target unless it resides in Skill tree.

Also set your input type and game mode variable before remove from parent.

Hi,

“Remove from parent needs a target unless it resides in Skill tree.”
The target it is the Skill tree in which he is (It’s correct ?)

“Also set your input type and game mode variable before remove from parent.”
Excuse me but I did not understand what you want me to do.

Thanks for the screen but it was one of the tests I tried for to remove the second “Add To Viewport” but I still have the problem of the Widget that opens only once and of mouse activat.

I think You still have to create it once removed… let me dig up my old RPG game and see how i did it … ill post it here momentarily.

So this works like i think you want it. I dug up an old Project for you.

looking at mine vs yours the only real difference is your Set viability node. I am confused about what that’s for.

I tried to do as your screen but my Skill Tree window is not displayed.
I tried to add a “Set Visibility” on Visible before “Add To Viewport” it works but I get the previous error because of the second “Add To Viewport”.

“The widget ‘SkillTreeInterfaceTest_C’ already has a parent widget. It can’t also be added to the viewport!”

I am at a loss.

Hi, Currently I am like in your screen, I created my SkillTree Widget and in my primary widget I added it. I passed it in hidden, in my BP, I come to make it visible and I remove it with to the button that is in Widget Skill Tree.

Can the error cause a stability or crash problem ?