官术网_书友最值得收藏!

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:

  1. Determine Company Name and Product Name from PlayerSettings by navigating to Edit | Preferences | Player Settings:
  1. Now, select (Windows) Start and type regedit. Select the regedit program when it becomes available to you:
  1. 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):
  1. 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
  1. Select all three of the listed items and delete them:
  1. 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.
主站蜘蛛池模板: 栖霞市| 宜阳县| 西青区| 荔浦县| 海口市| 融水| 霸州市| 睢宁县| 莎车县| 临夏县| 通化市| 古丈县| 岑巩县| 八宿县| 昌黎县| 丰顺县| 呈贡县| 乌恰县| 宜阳县| 鄯善县| 延庆县| 昌江| 西青区| 靖远县| 响水县| 孟津县| 尉犁县| 万州区| 故城县| 定日县| 江安县| 南木林县| 霍州市| 崇州市| 崇文区| 华阴市| 扎鲁特旗| 和林格尔县| 五大连池市| 吴桥县| 科技|