Moving Player to Level Entrance Locations by Using Persistent Data ~ Unity 2022 Tutorial
Chris' Tutorials
In depth look at how to have a player spawn at a specific location in a new scene and pass that information over to the new scene by having persistent data with DontDestroyOnLoad and a scriptableobject storing your GameState information.
Scripts and Assets ➣ https://www.patreon.com/posts/72580231/
➣ Downloadable Assets, Video Courses, and Other Places to Follow Me https://www.patreon.com/christutorials https://chris-tutorials.itch.io/ https://linktr.ee/ChrisTutorials
◢ Chris Recommends ◥ Master Skills with Skillshare Video Courses ►► https://www.skillshare.com/r/user/christutorials?gr_tch_ref=on Save Money Shopping Online with Honey Extension ►► https://joinhoney.com/ref/qd04c25
00:00 - What to Expect 00:34 - Persistent Data Options 01:05 - ScriptableObjects Explained 02:27 - Instantiate a Copy of Game State 03:56 - DontDestroyOnLoad 04:42 - PlayerManager Spawning the Player 07:47 - Target Spawned Player with Camera (Cinemachine) 08:20 - UnityActions (Events) 10:43 - LevelTransition Trigger Area 11:56 - LevelManager 12:22 - GameLevel (One in Each Game Level Scene) 14:06 - Visual Walkthrough RECAP 16:14 - Wrapup ... https://www.youtube.com/watch?v=WdlvjD5xE7c
61489090 Bytes