- Home /
Switch between maps - to teleport a character
Hey!
I does anybody know how to change world map to another in the game? i found a tutorial only for Unreal Engine - https://www.youtube.com/watch?v=0yZVTsZ5iK8
It is a kind a teleport. One map to another.
Thnaks for any help!
Monika
Answer by Commoble · Mar 05, 2017 at 05:16 PM
What you're asking for is a Scene transition: Loading up a new Scene (and throwing out the old one), and making sure everything that needs to be preserved between scenes gets preserved the way it needs to be.
The SceneManager class has a few static functions you can use for loading a new scene. For moving the player over, you'll likely want to look into DontDestroyOnLoad.
This tutorial has some good bits on loading scenes, and this one has a few more good bits about preserving objects between scenes.
Your answer
Follow this Question
Related Questions
problem in teleport between 2 terrains 0 Answers
Make a simple tree 1 Answer
How to create endless terrain... 0 Answers
How to set area of map to be captureable 0 Answers