Unity2d按钮出现在手机屏幕的中央。但是我把它们放在角落里

时间:2015-12-21 12:24:40

标签: android button unity3d position 2d

在我的unity2d项目中,我添加了一些gui按钮,并在检查游戏时将他们的位置安排到角落。窗口。但是当我在手机上安装游戏时,按钮会改变位置并出现在屏幕中央而不是角落。我该如何解决这个问题?如果需要,我可以上传一些ss。

where it supposed to appears

where its appears

here is a example button of mine app

1 个答案:

答案 0 :(得分:1)

您应该在UIScaleMode组件中将Scale With Screen Size的类型更改为Canvas Scaler。然后,更改按钮的枢轴(如果屏幕左下方的按钮,则选择LeftBottom等等。)