- Mastering UI Development with Unity
- Ashley Godbold
- 254字
- 2021-08-27 18:43:09
Method 2 – Deleting PlayerPref files
I have found that Method 1 doesn't always work for me and sometimes my resolution settings are not reset. If you are unable to get Method 1 to work for you (or you just feel like doing it another way), you can find the PlayerPref files on your computer and delete them manually. To delete the files manually, complete the following steps:
- Determine Company Name and Product Name from PlayerSettings by navigating to Edit | Preferences | Player Settings:
- Now, select (Windows) Start and type regedit. Select the regedit program when it becomes available to you:
- The Registry Editor should now be open. Navigate to the folders that represent the Company Name and Product Name you found in step 1, by the following path:
- Computer
- HKEY_CURRENT_USER
- Software
- The Company Name Found In Step 1 (DefaultCompany)
- The Project Name Found In Step 1 (Mastering Unity UI Project):
- Once you select the appropriate folder, you should see the following items on the right-hand side of the Registry Editor:
- Screenmanager Is Fullscreen
- Screenmanager Resolution Height
- Screenmanager Resolution Width
- Select all three of the listed items and delete them:

- Rebuild the game, and the new resolution settings should now be displaying.
The steps outlined in the previous text demonstrate how to delete the files from a Windows machine. If you have a different operating system, consult the following website for the location of the PlayerPref files: https://docs.unity3d.com/ScriptReference/PlayerPrefs.html.
推薦閱讀
- 玩轉(zhuǎn)Scratch少兒趣味編程
- Java系統(tǒng)分析與架構(gòu)設(shè)計(jì)
- Flask Web開發(fā)入門、進(jìn)階與實(shí)戰(zhàn)
- Designing Hyper-V Solutions
- JavaScript動(dòng)態(tài)網(wǎng)頁開發(fā)詳解
- Unity 5.x By Example
- Mastering JBoss Enterprise Application Platform 7
- Creating Stunning Dashboards with QlikView
- C# Multithreaded and Parallel Programming
- Visual Studio Code 權(quán)威指南
- 硬件產(chǎn)品設(shè)計(jì)與開發(fā):從原型到交付
- Visual Basic程序設(shè)計(jì)全程指南
- 大話程序員:從入門到優(yōu)秀全攻略
- C語言開發(fā)寶典
- Advanced C++