英文:
Godot4 fullscreen settings issue
问题
正如您所见,我希望形状位于屏幕中央。但当我播放游戏时,会发生这种情况:
为什么图片不在中心呢?
还有为什么当我点击绿色按钮(调整大小按钮)时,它会调整大小并正常工作。我该如何修复这个问题?我希望它在全屏模式下正常工作。
英文:
I tried to make a project be in fullscreen in godot4. These are my settings:
as you can see, I want the shape to be in the middle of the screen. But when I play the game, this happens:
why is the picture not in the center?
and why when I click on the green button (the resize button) it resizes and works perfectly fine. How do I fix this? I want it to work fine in fullscreen.
答案1
得分: 1
将一个 Camera2D
添加到场景中,并将其 current
属性设置为 true
,然后在游戏中所看到的就是 Camera2D
所“看到”的。
英文:
Add a Camera2D
to the scene and set its current
property to true
, then what you see in the game is what the Camera2D
"sees".
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论