Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • 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
  • Home /
avatar image
1
Question by moghes · Jul 29, 2013 at 03:38 PM · playerprefsqualityresolution settingsimport settings

PlayerPrefs.DeleteAll() changes resolution setting? Looks like a unity bug

Hello everyone!

I am testing my game, and added PlayerPrefs.DeleteAll() in the Awake function, just to remove all saved data, for testing purposes.. For example I will test if levels are getting unlocked if previous level is completed and so on.. As I open the build, I see resolution blurry, in every scene I didn't get the resolution I had. Resolution I mean GUITexture (fullscreen background Image) and every other GUITexture I am using. I tried to build it again and again, and still I am getting this blurry resolution.

As I concluded, PlayerPrefs had saved the resolution settings or import settings of textures, and with PlayerPrefs.DeleteAll(), they are gone/deleted.. But it has nothing to do with that, it is strage and as I concluded it is a unity bug.

Has someone experienced this before?

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

3 Replies

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by ahaykal · Jul 30, 2013 at 07:19 AM

Well it happened to me once, and the way I fixed it is like this:

Go to player settings --> Resolution and Presentation --> Display Resolution Dialog.

Enable it then build then disable it. That should fix it.

Hope that helps

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image moghes · Jul 30, 2013 at 07:35 AM 0
Share

well just tried and the second build returned to the resolution I had.. Looks strange though, but it solved !! thanks

avatar image
1

Answer by Sylafrs · Apr 30, 2014 at 03:08 PM

The idea is that the resolution is set within our PlayerPrefs then used later. You can also force the resolution you want with Screen.SetResolution.

Player Pref's resolution (last used resolution) is stronger than the Player Settings resolution (that would be the first used resolution, if you don't use the dialog)

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by Bunny83 · Jul 29, 2013 at 03:45 PM

Uhm, PlayerPrefs are ment to save and load Preferences for the Player. The resolution setting is also a preference.

Comment
Add comment · Show 3 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image moghes · Jul 29, 2013 at 04:12 PM 0
Share

well how to return the resolution I had? I am rebuilding and getting still blurry.. I mean I can't know how to return it back to how it was

avatar image Bunny83 · Jul 29, 2013 at 04:36 PM 2
Share

The only thing i know which Unity does save is the graphics quality setting. It's called "UnityGraphicsQuality". It's an int which holds the quality level the game used last time.

avatar image moghes · Jul 30, 2013 at 07:36 AM 0
Share

thank you for your useful information! ahaykal's answer solved the thing..

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

18 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Poor Untiy 2D Sprite Quality/Crispness 1 Answer

Resolution is not saving. 2 Answers

Ingame Quality Settings not recognized 1 Answer

PlayerPrefs.DeleteAll() not working in Editor 1 Answer

PlayerPrefs Bug 0 Answers


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