本文介绍了当我统一运行游戏场景时,面板消失了的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是错误视频

youtu.be/r6m_RVFw7tA

youtu.be/r6m_RVFw7tA

没有仅代码面板和按钮.

There is no code only panels and buttons.

如果您还需要其他任何东西,请发表评论.

If you need anything else then please comment..

统一文件: https://www.dropbox.com/s/fvxxjod1bs52u92/first.unity?dl=0

推荐答案

相机的远裁剪平面不足以覆盖UI位置.将其设置为3000.如果那行不通,请加大力度.远的裁剪平面,3000在您的情况下似乎可以正常工作.

The far clipping plane of the camera is not far enough to cover the UI position. Set it to 3000. If that doesn't work, bump it up more. far clipping plane of, 3000 seems to work fine in your case.

为使相机完美对准,您需要将其y轴旋转重置为0,然后还将x轴位置更改为名为的画布UI的位置(498). UI容器.之后,您可以手动将UI组件的旋转/位置修改为所需的任何内容.

For perfect alignment of your camera, you need to reset its y-axis rotation to 0 then also change the x-axis position to be the position(498) of your canvas UI which is named UI Container. After this, you can then manually modify your UI component rotation/position to whatever you want.

这篇关于当我统一运行游戏场景时,面板消失了的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-31 10:38