Removing a widget from a HUD

I’m currently building a level and I have part of it which is health which is 4 hearts and each time a player falls the hearts change and I have that part sorted but the only way I could do it was to delete all widgets, is there anyway to make it so the heart part can change separate to the rest of the hud? if so how?

Hey there,

what are these Hearts? Is this all in ONE Widget, or are the Hearts separated Widgets, which you add to a main one? (:

I guess the Hearts are representing the Lifes of the Player? Is one Heart one Life? Or do you just have a Number for the Hearts?

(: When you give me a bit more information and maybe a picture of your UI with the Hearts in, I could give you a solution!

Cheers!

Yes, of course. Name your hearts and check “Is Variable” and then modify them from the Graph of your widget.

87267-screen+shot+2016-04-17+at+9.29.28+pm.png

In this screenshot you can see my default component name (for the spacer I have selected) is “Spacer_9” and “Is Variable” is not checked. Yours will look somewhat like that (probably more like Image_2) to start with.

You can also see the button in the top right to get to the “Graph” to put your logic.

Also, don’t try to “remove” anything. Instead set the visibility of the component to “Hidden” or “Visible”. You really don’t want to be constantly destroying them and recreating them.