unity3d运行时game窗口的scale自动变两倍

shinwa86 2019-06-04 09:39:37
每次运行时game窗口的scale自动变两倍 每次改写代码保存后 game窗口的scale自动变两倍
烦死了 不知道怎么解决这个问题
...全文
1821 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
weixin_45612963 2021-09-24
  • 打赏
  • 举报
回复

我遇到的问题是Scene面板能看到(无论打不打开)时一切正常,Scene面板一关game面板就开始抽风

洪荒太初 2020-02-17
  • 打赏
  • 举报
回复
引用 3 楼 _chill 的回复:
论坛上有 https://forum.unity.com/threads/game-view-scale-always-resets-to-2x.639508/ 应该是bug 后面给的解决办法是 Can you reproduce this issue in a new project? Can you reproduce this issue in an older Unity version? Do you have more than one Unity editor open? If something resets when entering play mode, it's often related to Unity's assembly reload, where it re-initializes a lot of things. It often reads settings via EditorPrefs, to restore settings, which is shared among editor instances. You probably tried this already, but just to make sure. Close all Unity editor instances Open a single editor Set slider to 1x Close editor Open your project and check if the issue persists This should make sure that Unity writes this setting to disk/registry. So if an assembly reload occurs, Unity should pick up the extising values stored on disk/registry. 我是关闭了Game视图,直接播放就好使了
我现在用的5.3.4版本,Game面板连Scale这个滑条都没有怎么办
_chill 2019-06-20
  • 打赏
  • 举报
回复 2
论坛上有
https://forum.unity.com/threads/game-view-scale-always-resets-to-2x.639508/
应该是bug
后面给的解决办法是

Can you reproduce this issue in a new project? Can you reproduce this issue in an older Unity version? Do you have more than one Unity editor open?

If something resets when entering play mode, it's often related to Unity's assembly reload, where it re-initializes a lot of things. It often reads settings via EditorPrefs, to restore settings, which is shared among editor instances.

You probably tried this already, but just to make sure.
Close all Unity editor instances
Open a single editor
Set slider to 1x
Close editor
Open your project and check if the issue persists
This should make sure that Unity writes this setting to disk/registry. So if an assembly reload occurs, Unity should pick up the extising values stored on disk/registry.

我是关闭了Game视图,直接播放就好使了
夫人的泡泡鱼 2019-06-20
  • 打赏
  • 举报
回复
高版本的bug,使用5.X并未有这种情况!
-彼岸此岸- 2019-06-05
  • 打赏
  • 举报
回复
楼主用的是2018之后的版本吧?我也遇到过。我是选择16:9比例,然后把scale拉到1才正常的。

2,583

社区成员

发帖
与我相关
我的任务
社区描述
Unity3D相关内容讨论专区
游戏unity 技术论坛(原bbs)
社区管理员
  • Unity3D
  • 芝麻粒儿
  • 「已注销」
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

Unity3D社区公告:

  1. 社区致力于解决各种Unity3D相关的“疑难杂症”。
  2. 社区不允许发布与Unity3D或相关技术无关内容。
  3. 社区版主邀请各位一道为打造优秀社区不懈努力。

试试用AI创作助手写篇文章吧