Switch Screens

How can I do that in UE5 ? That would help me a lot :slight_smile:

Thanks for your time

EXAMPLE

Where are you stuck? The media player in UE5 works exactly the same as in UE4.

  1. First you need to create a Media Player

    (Media Texture will be created automatically)
  2. Drag and drop the Media Texture in your User Widget
  3. Set a reference to the Media Player in the widget
  4. (Optional) Create a bunch of Media Source objects and point them to the right video sources
  5. Use the Button events to change the video sources of the Media Player variable

Point 4 is optional as the player has a bunch of methods that can directly open files or URLs

Thanks for the answer :wink:

Iโ€™m stuck with the widget blueprint. I have the textures and the switch when I pressed key in my level blueprint but I donโ€™t know how to have the button switch that do that in my widget blueprint.

This is all the code you need in your widget

If you are new with UMG and you donโ€™t see the button events you have to set the buttons as variables in the designer:

1 Like

Thanks dZh0 for the answer. I will try that :wink: