Saving Data in Unity: PlayerPrefs

preview_player
Показать описание
In this video, we take a look at PlayerPrefs, Unity's built-in class for saving data. Learn how to use PlayerPrefs, along with its pros and cons, and recommended uses for your game.

Support Board To Bits on Patreon:
Рекомендации по теме
Комментарии
Автор

I just made a YT account just to say that this is one of the clearest and efficient tutorials ever. Thanks man!

jbit
Автор

In case your game crashes
Me: EXPECTED

hashvolting
Автор

Your explanation was top-notch! Thank you a lot for that! But I have a little question: could I use PlayerPrefs in a namespace instead of a class? Or maybe a static class? Cheers

devlog
Автор

How do i save bunch of chars in PlayerPreft? Should I save their codes as ints or maybe convert them to single character strings somehow?

spacewanderer
Автор

just to let everybody know, there is a default feature for the get functions, this is important when you first load your game because most likely you will have default values

jonathanvukadinovic
Автор

Can you make a video how to save Options settings?.

Toothless
Автор

Best explanation I've ever seen. Thank You!

KalebVal
Автор

Good tutorial, loud & clear. BTW how about Boolean? enable or disable variable

yogipurnomoputra
Автор

hey man. im having trouble with my monodevelop. it does not auto complete. especially playerprefs. how do you do that ? is there some settings to poke to start with ?

makilacerna
Автор

+Board To Bits Games This is the best unity tutorial i've ever seen and I have seen a lot so I'm going to sub for more amazing tutorials and what ever else you do!!!

p.s
thank you SOOOO for making this tutorial. It ended my 50 minute search for a guide on playerPrefs!

JarJimairid
Автор

any update about this player prefs? hoping to see more videos :D thanks

gimeltuvilla
Автор

Hmm I don't understand why this isn't working to save my highscore int which is a public static int. I load it on the start of the game and I save it at the game over scene. Any idea???

kbgila
Автор

Hey, I'm trying to save the images related to a thing but they cannot be serialized or stored in PlayerPrefs. I'm a complete newb. Pls help

TheXpertGuy
Автор

Very informative and good explanation. Subscribed!

hpenvy
Автор

+Board To Bits Games - will the leaderboard work if different players are playing my game at the same time?

SovanKeshri
Автор

You can call multiple values, "string[] Highscores = PlayerPrefs.GetString("Highscores", "Bob").Split(', ');" maybe a new feature since this video was released thou.

pixelfuneral
Автор

how about android, can i store more then 1mb file size

sooaolongtian
Автор

how can you save an array or list of strings in playerprefs?

noralexanian
Автор

Thanks for this tutorial, very informational and concise. Saved my final project!

ProfessorSqueaky
Автор

HI thank for this video, but you not see the value save after restart . :3

MaudMcok