Home › Workflows › Create a new level

Create a new level

By the end of this you will have your own map with the correct pawn spawning on every platform.

Steps

  1. Create a PDA_Level data asset. Name it DA_Level_<YourMap>.
  2. Set Game Mode to your game mode, or BP_GameMode_Showroom to start.
  3. Assign Default Pawn Desktop, Default Pawn VR and Default Pawn Mobile. Leave Pawn Select on Dynamic.
  4. Set Persistant Map to your map. Add any streaming maps to Streaming Maps.
  5. If you use streaming maps, set Transition Class and Min Transition Time.
  6. Create your map and place a BP_MapInfo actor in it. Set its Level Key to the data asset.
  7. Place one or more BP_PlayerPosition actors as spawn points. Mark one as Default Position.
The level data asset filled in
howto_newlevel_01.pngThe level data asset filled in
The level data asset filled in
BP_MapInfo placed in the map
setup_mapinfo_placed.pngBP_MapInfo placed in the map
BP_MapInfo placed in the map

Notes

Switch to this level at runtime with ML_Loading.Loading_SwitchLevel, which handles the editor, listen-server and client cases and fades the camera for you.

Tip

Set Pawn Select to Force Desktop while iterating in the editor so you are not launching VR preview on every test, then switch it back to Dynamic before shipping.