• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges

Results For: Save game playerprefs

avatar image

Katsura commented

PlayerPrefs saving

Jul 24, '11 playerprefs

1 Reply

6 Votes

be saved? The problem is that I store the game progress in this prefs and if users will lose it after
avatar image

Answer by BerggreenDK · Jul 20, 2011 at 10:45 AM

I would, if in your situation, build 2 small test apps. Then try to save something in playerprefs
avatar image Katsura · Jul 24, 2011 at 02:16 PM 0
Yep, I checked Android and Windows: all PlayerPrefs are saved after app upgrade. I have not any iOS
avatar image

SuperJuul edited

unity playerprefs doesn't save after reset

Sep 5, '15 playerprefs

1 Reply

0 Votes

Hello guys, I need some help with the playerprefs used in unity. My game was done so I reseted
avatar image

Answer by Bunny83 · Sep 05, 2015 at 01:58 PM Best Answer

the scripts seems a bit strange to me. Your "SaveSystem" script saves the current loaded level index
avatar image hexagonius · Sep 05, 2015 at 10:31 AM 0
every Set to a playerprefs should work, except your deleteall is called more often. put
avatar image SuperJuul · Sep 05, 2015 at 04:22 PM 0
many times... Sorry for wasting everyones time here, But I'm really thankfull because my game is finished now :)
avatar image

naresh-kumar published

How can i save long value in playerPrefs ????

Oct 1, '16 playerprefs

1 Reply

1 Votes

i am working on my game and required to save long value to carry for next. But i don't know how can
avatar image

Answer by djfunkey · Sep 30, 2016 at 10:30 AM

Save the Long as a string in PlayerPrefs, then just convert it back when needed.
avatar image

westmac commented

Does PlayerPrefs save data across scenes

Apr 25, '20 playerprefs

1 Reply

0 Votes

tell me if PlayerPrefs saves data across all scene in the game.
avatar image

Answer by Bunny83 · Apr 24, 2020 at 01:32 PM

Yes. [ PlayerPrefs.][1] What else should we say? It's in the first sentence of the documentation
avatar image

hexagonius answered

Are playerprefs saved to iCloud?

Feb 17, '15 playerprefs

1 Reply

0 Votes

Hi, I developed a game using Unity3D, and used the playerprefs to save the game progress. One
avatar image

Answer by hexagonius · Feb 17, 2015 at 01:19 PM

Doesn't look like it since there's Plugins Out there to do this: [iCloud PlayerPrefs AutoSync][1
avatar image

PvTGreg commented

How can I use my saved playerprefs the next time the game gets started?

Dec 9, '14 playerprefs

3 Replies

0 Votes

You complete level 1-3 but next time you start up the game I want the game to remember this, I
avatar image

Answer by screenname_taken · Dec 09, 2014 at 11:39 AM

When you save in player prefs, you could save the name of the level you want to load next, i mean
avatar image

Answer by Kramboja · Dec 09, 2014 at 12:48 PM

the name but you have to save it in the right player pref. And if you use a name it should be GetString (also SetString)
avatar image PvTGreg · Dec 09, 2014 at 02:51 PM 0
yes theese will save where player prefs saves by default so it carry's over when you restart
avatar image

jennes commented

Save and load script using PlayerPrefs

Oct 31, '12 playerprefs

1 Reply

0 Votes

I am making an FPS zombie game. But I want an option to save and load the data. PlayerPrefs
avatar image

Answer by DaveA · Sep 12, 2012 at 10:00 PM

are, and PlayerPrefs will store strings, floats, and ints (bools, there's a script for that or just
avatar image

justaddice83 answered

Playerprefs conflict when I open my game twice at once.

Apr 8, '15 playerprefs

1 Reply

0 Votes

Hi, When I play multiple copies of the same game file the playerprefs conflict which each other
avatar image

Answer by justaddice83 · Apr 08, 2015 at 01:24 PM

are running using a playerpref value which all instances can access. For example you could increment
avatar image

EGGamer asked

Playerprefs not saving

Nov 21, '18 in Help Room

0 Replies

0 Votes

()*; and it should save the data into PlayerPrefs. But it doesn't save it, BUT it gets the information. [Code](https://hastebin.com/wuterewama.cpp)
avatar image

ZachAttack9280 published

PlayerPrefs not saving c#

Sep 13, '15 playerprefs

0 Replies

1 Votes

OK so PlayerPrefs Saves and loads but doesn't save or load the money in my idle game, if you know
avatar image

Eric5h5 answered

Setting Default PlayerPrefs on First Run?

Dec 18, '13 playerprefs

1 Reply

2 Votes

I'm making a game for android, and am working on saving settings that the player will set. I'm
avatar image

Answer by Eric5h5 · Dec 18, 2013 at 06:35 PM Best Answer

Use the version of the PlayerPrefs functions that includes a default value. // Set music
avatar image

Dmitry_Kotov asked

PlayerPrefs cache population

Aug 30, '19 playerprefs

0 Replies

0 Votes

or explicit ** PlayerPrefs# Save** call. Now I wonder how exactly this cache is getting
avatar image

dean-o commented

Using PlayerPrefs

Aug 18, '16 playerprefs

3 Replies

0 Votes

I have recently been creating a game with tutorials. Unfortunately, they didn't cover a save score
avatar image

Answer by Mariol · Aug 16, 2016 at 06:29 AM

Where have you declared a new playerpref variable to save the amount of gold to upon game save
avatar image

Answer by LK84 · Aug 16, 2016 at 08:07 AM Best Answer

Please note that PlayerPrefs is an easy way to save data but also an very unsafe way. The player
avatar image

Answer by HardikMaru2001 · Aug 16, 2016 at 07:33 AM

Here is the line of code you need to store and retrieve score from PlayerPrefs: PlayerPrefs.SetInt
avatar image

KittenSzmiten commented

PlayerPrefs not quite working

Sep 17, '19 playerprefs

2 Replies

0 Votes

So i'm trying to make an experience system using PlayerPrefs right now. Previously I had a working
avatar image

Answer by Anaxis_Studio · Sep 15, 2019 at 11:55 PM

data between scenes or using data serialization to persist data between game sessions. _ https://learn.unity.com/tutorial/persistence- saving-and-loading-data
avatar image

Answer by niklasdette · Sep 15, 2019 at 11:06 PM Best Answer

are Setting the Playerprefs int named "1" to 2. Then you are setting Level from 1 to 2. The next
avatar image KittenSzmiten · Sep 17, 2019 at 04:35 PM 0
a working level save system AND player position save system
  • 1
  • 2
  • 3
  • 4
  • 5
  • ›
  • »
  • 1
  • 2
  • 3
  • 4
  • 5
  • ›
  • »

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Refine Your Search

    Submit


    Enterprise
    Social Q&A

    Social
    Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

    Footer

    • Purchase
      • Products
      • Subscription
      • Asset Store
      • Unity Gear
      • Resellers
    • Education
      • Students
      • Educators
      • Certification
      • Learn
      • Center of Excellence
    • Download
      • Unity
      • Beta Program
    • Unity Labs
      • Labs
      • Publications
    • Resources
      • Learn platform
      • Community
      • Documentation
      • Unity QA
      • FAQ
      • Services Status
      • Connect
    • About Unity
      • About Us
      • Blog
      • Events
      • Careers
      • Contact
      • Press
      • Partners
      • Affiliates
      • Security
    Copyright © 2020 Unity Technologies
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell My Personal Information
    • Cookies Settings
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    • Anonymous
    • Sign in
    • Create
    • Ask a question
    • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Explore
    • Topics
    • Questions
    • Users
    • Badges