HUD Show and Hide Functionality is not working and my brain is rotting! pls helpp

Hello everyone! I’ve been working on a project that involves night vision. What I’m doing is at the beginning I want the UI for my night vision to be hidden and whenever I pressed “N” (Which is my night vision key) that’s when I want it to appear. So my pov would be clean without messy UI ifI’m not using my night vision. I made some works and it doesn’t seem to appear. Why am I missing and needs fixing?

This is my UI for night vision. (I set the visibility hidden so whenever the game starts, its clean looking, is it the right way to do it?)

This is my blueprint for widget and hotkey


Thanks aloot!!

1 Like

Sounds good to me. In the 2nd 3rd screenshot, does the input trigger? If you add a Print String, does it print? If it does not, do tell where this input is being handled. Almost certain this is in the Pawn.

I input a print string to test it but did I put it in a right place?

I don’t know if its correct but I somehow get some output

Nah, put it after the input. Does the input work? I meant the 3rd screenshot, somehow my mind imagined 2&3 as one. Are those 2 screenshots from the same BP, the Pawn you’re controlling?


Ok, I see the actual issue:

You’ve hidden the canvas; even though the entire widget shows, the canvas and its children remain hidden. Leave the canvas visibility on default settings. instead, set root of the widget (above the canvas) to Hidden. Input can then show it as it already does.