How to make a fade in and out effect?

For example i want the character to pass out so i want him to fade out and maybe fade in in another level

Hey, you can use Matinee which is pretty simple. In Matinee, Create a director group > Right click the DirGroup and select fade track. Create key frames and you can right click set value from 0 to 1. Fade tracks also let u change the Fade color in the details window.

265471-matinee.png

After creating this track you can need to trigger the matinee sequence in your blueprint by doing something similar to this.

265475-matinee2.png

When the screen fades black you can then switch levels.
Hope this helps!

I have some questions

  1. what should i do with the key-frames exactly
  2. instead of event beginplay can i put a box trigger?
  3. last but not least can i add a sound with the effect and if yes then how?
    Thank you

Answer 1:
So create keyframe at time 0, right click keyframe set value to 0.
Create keyframe at time 1, right click keyframe set value to 1.
(Basically this does transparent color to full opague 1. It will turn from nothing to black in one second)

Answer 2:
Yup. You can just connect the same matinee play to anything. If you click on the box trigger just connect this to the end of it.

Answer 3:
Yes. In the details pannel of the fade track you can set Fade Audio to true.