Teleport Player to a specific object after scene change

Hi everybody!

I try to teleport my playerFPS to a 3D cube after the change of scene.
I use the DontDestroyOnLoad function but I can not teleport my PlayerFPS to a specific location…
The player goes to the center of the map automatically.

An idea?
Thanks !

Ok I think I understand. You’re going to want something like this.
https://docs.unity3d.com/455/Documentation/ScriptReference/MonoBehaviour.OnLevelWasLoaded.html

//This is called when a new level is loaded. 
void OnLevelWasLoaded(int level) 
 {
        if(level == 1)
        {
             transform.position = new Vector3(Your spawn points position);
        }
 }

@mefsh That is to say? Currently my player is instantiated with the function DontDestroy, so it is TP at the center of the level that is loaded after with the scene manager.
I would like to know how to change his spawn position?
Thanks :slight_smile: