英文:
Why does Unity camera size change when game is maximized in Play Mode?
问题
如您所见,相机大小在我以最大化模式播放时增加,而不是在聚焦模式下。这个问题突然发生,我不知道如何解决,我以前从未遇到过这样的情况。
我的相机角度两端都有触发器,使用两种不同大小的相机角度很困难。我已经使用了Debug.Log
来记录transform.position
和transform.localScale
,但在切换到最大化模式后它们没有改变。
英文:
when starting game in focussed mode
vs when starting in Maximized mode
As you can see the camera size increases when I play maximized mode other than the focussed mode. This problem just randomly happened and I don't know how to fix this, I never had something like this before.
I have triggers on both ends of the camera angle and it's difficult to work with 2 different sizes of camera angles. I already Debug.Log
the transform.position
and transform.localScale
but they did not change after switching to maximized mode
答案1
得分: 2
我注意到你的纵横比设置为“自由纵横比”。
如果你将其更改为类似“16:9 纵横比”,相机大小是否会保持不变?
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论