UI Fade Out

Hello All,

At the moment im trying to create this scenario: Player walks into a box trigger, a UI prompt fades in telling the user to “press A button” the UI stays on screen until the player leaves the box trigger, then the UI will fade out.

I have nearly everything working correctly but i cant seem to get the UI to fade out after the player leaves the box trigger. I have a UI animation to fade in and out, the fade in works but the fade out just cuts, or doesnt play at all.

I hope the blueprint is clear, the fade animation is in the UI graph itself. which is here:

Any Help Appreciated

Hi!

This is a quick example of FadeIn/FadeOut. You can do all that you need inside an actor.

This is actor with Collision Box component.

This is Event Graph of the actor.

You need to create a variable for the current instance of the widget. Using this variable, you will have access to the widget.

Animation curve is a linear curve in the range from 0 to 1.

This is result.

Hey! Thanks for your help, im working through this but having a lil trouble. I cant seem to get the RGBA values on the set colour and opacity nodes to show,

So i cant follow the tutorial exactly. Do you have any ideas where im going wrong?

hey again, ive got most everything to work, im still having issues with the color and opacity option. I THINK that when i plug the animation from the timeline into the color and opacity it fades to black whilst fading out. Is there a way to just enable the alpha to be affected, not the colour itself?

Thanks

Right click on the “In Color and Opacity” input and select “Split Struct Pin”. Then yours will look like svv3dUDN’s.