I have a crosshair widget that I am trying to disable when I unequip my weapon. Previously using Blueprints I had the functions Add to Viewport (to enable) and Remove All Widgets (to disable) on each weapon, which worked fine.
Attempting this on C++ there doesn’t seem to be a “Remove all Widgets” function. I have tried RemoveFromParent(), RemoveFromViewPort() and RemoveFromRoot() without any luck.
Above code is giving this result (regarding the crosshairs)


