ZyDevs
ZyDevs

Reputation: 43

Remove from Viewport not in Unreal anymore?

So I have a menu / UI widget in Unreal Engine v4.9.2 and I realised that "Remove from Viewport" isn't available anymore? Is there any alternative? I just need the menu to close after clicking the button on the screen.

Here's my current blueprint: blueprint

Any help is great!

Thanks.

Upvotes: 0

Views: 4322

Answers (1)

T. Kiley
T. Kiley

Reputation: 2802

Since Unreal Engine 4.6, you now use RemoveFromParent which removes the widget from whatever its parent is (e.g. the viewport). This is exposed to blueprint.

The release notes mention in the C++ API changes the following:

RemoveFromViewport is now deprecated, use RemoveFromParent.

Upvotes: 3

Related Questions