Moving Player to Level Entrance Locations by Using Persistent Data ~ Unity 2022 Tutorial

preview_player
Показать описание
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.

➣ Downloadable Assets, Video Courses, and Other Places to Follow Me

◢ Chris Recommends ◥

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
Рекомендации по теме
Комментарии
Автор

Great tutorial. I implemented it very closely on my 3d project

arturin
Автор

Do you have any tutorials on how to make that level transition?

TheRealKevn
Автор

I'd be really interested to know how to add animations to moving NPCs. I can code the NPCs for random movement, but i still cant get those guys to face the right way!!!

CB-sfmx
Автор

where can i find all of the scripts as i only can see line 27 and up on the playermanager

alfonzo
Автор

Hello, thank you very much, but I do have an error "Found more than one Input Manager in the scene." when I implement Game Level. I do fight with it a little, but I know there have to be a solution.

monikaurbanova
Автор

Hey Chris, I'm starting with Unity and one thing I didn't understand is why are PlayerManager and LevelManager ScriptableObjects?

Glundgren
Автор

Hey Chris, im trying to follow this and running into an issue, apparently SceneAsset namespace cant be found, I do have the UnityEditor reference in the scripts. Also doesnt the editor assembly get removed when you build the project?

Thanks

TwistdRabbit
Автор

you show only part of PlayerManager. I just lost time.

GGamess
Автор

Not very good tutorial, didn't explain how to get scriptable object. Was very confused.

MidnightAmethyst