Solution to the problem of "Unity packages non-full-screen games, but still runs full-screen"

foreword

When we use Unity to make games, we will encounter some games that require a fixed resolution, but sometimes after the resolution is fixed, the packaged project is always full-screen, so what is the solution?

fixed resolution

First of all, we need to fix the resolution. We can uncheck the default fill screen from the upper left corner File → Build Settings → Player Settings → Resolution and Presentation , and set the width and height.

Solve the problem of full screen after packaging

I tried various methods from Baidu, and finally got the answer in a video. It turned out that it was because the products of the same company had been running in our registry, and we needed to open and run (Windows shortcut Win+ R ) → Enter Regedit to open the registry After opening the registry, find HKEY_CURRENT_USER in the registry → Software → Unity → UnityEditor

Guess you like

Origin blog.csdn.net/m0_58523831/article/details/129829145