Audio Between Levels

Could you please demonstrate how to play audio between levels through a game instance? I would like the background music from the menu to continue playing at the game level from the speakers.

I found this method, but don’t understand how to do that:

  1. Set an Audio Component on game instance.
  2. Set a function on Game Instance for when you want to play the sound. You can pass the Sound Base through this.
  3. On the function: Create sound2d and then expand the function options and check “Persist Across Level Transition”.
  4. Set Audio component with the return value from crwate sound2d.
  5. With Audio component, call Play.

Thank you in advance for any help.

I created a variable in a game instance. But what to do in the main menu and in the second level so that the music continues to play in the same place where it ended I don’t understand.