Quantcast
Channel: Questions in topic: "dontdestroyonload"
Viewing all articles
Browse latest Browse all 416

Return to a specific scene & position

$
0
0
Hellooo I have a few short scenes that can be loaded from several other scenes. I need to return to the right level when done... & keep the players Position... But the "Player" is only a camera on an iTween path so DontDestroyOnLoad( gameObject ) might be tricky I'm in C#. Can I put a script on an exit collider in the new scene like so: public string oldLevel; void OnTriggerEnter(Collider other) { Application.LoadLevel(oldLevel); } And how would I return to the old scene with the players position intact? I think I can access the iTweenPath.percentage

Viewing all articles
Browse latest Browse all 416

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>