2014-04-29 32 views
1

我正在开发游戏,在Unity中我已将分辨率设置为1280x800。 当我导出到Android时,我希望它适应屏幕(如果需要添加黑色条),但事实并非如此。如何在Unity上制作游戏合身屏幕

这是怎么看起来像在Nexus 4: Game on nexus 4

而且在Nexus 5: Game on nexus 5

我怎样才能让这个看起来到处都一样? (如前所述,如果需要,可以有黑条)。

回答

1

您需要将相机的正交大小正常化通缉分辨率:

camera.orthographicSize = 640/screenwidth * screenheight/2 

More info here