Horizontal box not hidding

Hello, I’m trying to make a game for fun and it has been for the past few months, but somehow ue4 got bugged from something. I had a menu when you pressed escape in game it would hide everything and then show the menu, with options and other things, now it isn’t working.

Here’s the code for the custom event that I’m calling in the PlayerBP and the PlayerBP code:

https://prnt.sc/w6fb2m

https://prnt.sc/w6fbzb

Thanks in advance, HS_TiagoPlaysHD.

Hi there! This pictures just contain Show logic, but where is your Hide logic? And where is Horizontal box that you want to hide?

I forgot to change something in the custom event, and the hidding is supposed to hide the Health State and then make the menu visible. Here is how it was before 2 weeks ago and when I ment everything it was the mini map and the health state but I took the mini map off, it was taking a lot of fps, now the only thing in the ui is the health state and the menu

This is the hide/show logic:

https://prnt.sc/w706di

Horizontal box:

https://prnt.sc/w7088c

The menu without the Horizontal box:

https://prnt.sc/w70920

Thanks for the response.

Ok! In the old version you just do it with reference to widget of specified class. But in the last comment your custom event has no params. Where is the part, that is calling whis event from widget object?

The one wich is calling the custom event is the same as the post, it’s the playerbp wich calls the function:

https://prnt.sc/w6fbzb

Can you check that Event is called?

It’s called, because in game, the menu shows up, but doesn’t hide the horizontal box. If you need any screenshots tell me.

Can you share you widget design? Also just log visibility of Horizontal box after setting it

So, I put a breakpoint in the set visibility of the healthstate/ horizontal box and it got to the second part:

https://prnt.sc/w982vq

Here’s how it’s showing up on game:

https://prnt.sc/w988fq

Strangely. Are you sure that Health State variable is valid? Also try to recompile BP… And check that TextBlock is child of Health State

Sorry for the delayed response I needed to delay the dev a bit, since it was christmas and all.

I came to the pc saw the response and I checked the things in the UMG that you said:

The health state is a variable: https://prnt.sc/was95i

Recompiled it, the textblock is a child of the Health state and I need to put the healthstate in not hit-testable otherwise I cannot use the buttons to the left side.

Can you share widget design hierarchy?

Sure, here it is:

https://prnt.sc/way0c8

Everything is rather simple… Really strange… Could it be another TextBlock from another part (not from Health State)? One more thing - you can check the most simple case - move set visibility to input event itself and disconnect all other logic.

I don’t think so because I only start that UI, https://prnt.sc/wc50i8 , and I tried only setting the visibility of the Health state invisible but it didn’t do anything, that’s why I said it might be a bug.

Ok, if that can be bug try to find minimal steps to reproduce it

I’ll maybe try to re-install the engine, just a question do you know anything about replication of destroy actor?