canvas教程

统一android决议 - Unity android resolution

字号+ 作者:H5之家 来源:H5之家 2015-10-15 19:12 我要评论( )

28im技术大牛是面向程序员的知识学习与分享社区,追求最前沿技术

统一android决议 - Unity android resolution

- 此内容更新于:2015-10-13

主题:

所以,我刚开始在统一为Android开发(2d游戏)。我已经做了一些在网上搜索,但我什么也没发现。谁能我建立一个统一的用户界面,能让人上瘾的Android多个石堆决议?当我在统一测试效果很好,但是当我安装在不同的手机,字符消失,整个UI炸毁:(任何想法?非常感谢,K

原文:

So, I've just begun to develop in Unity for Android (2d game). I already did some search on the net, but I didn't found anything.

Who can I set up an Unity UI, to be addictive the Android Multiple screes resolutions ? When I test in Unity it works fine, but when I install on different phones, the characters are disappear, the whole UI just blow up :(

Any idea ?

Thank you very much, K

楼主:请开始标记你的团结而不是游戏引擎问题。谢谢!(统一标记。网络依赖注入容器)。

(原文:Please start tagging your Unity game engine questions with unity3d instead of unity. Thanks! (The unity tag is for the .NET dependency injection container.))

楼主:@JoxTraex我回滚你的标签编辑,重新添加标签。请阅读标签wiki团结以及我的评论。谢谢。

(原文:@JoxTraex I've rolled back your tag edit that re-adds the unity tag. Please read the tag wiki for unity as well as my comment above. Thanks.)

网友:啊,对不起!我的错,谢谢你告诉我!你能介绍unity2d标签吗?因为它是一个2d游戏,不是3d!在这种情况下?

(原文:ah, sorry ! My fault, thanks for telling me ! Can you introduce the unity2d tag please ? Because it's a 2d game, not a 3d! Whatever in this case ?)

楼主:是的,堆栈溢出的神有审议,统一引擎问题得到标记(有一段时间统一提供的工具只对3d游戏)。现在标签unity3d被用于所有统一游戏引擎问题,是否2d或3d。肯定有点用词不当,但它的标签已经工作了一段时间,所以每个人都只是用它!就我个人而言,我更喜欢如果unity3d标签重新命名为类似,但它可能会导致一些混乱给那些已经使用unity3d标签创建以来。

(原文:Yep, the Stack Overflow gods have deliberated that unity engine questions get tagged unity3d (there was a time when Unity provided tools only for 3D games). So now the tag unity3d gets used for all unity engine game questions, whether they are 2d or 3d. It's definitely a bit of a misnomer, but it's the way tagging has worked for a while, so everyone kind of just goes with it! Personally I would prefer if the unity3d tag were renamed to something like unity-engine, but it might cause some confusion to those who have been using the unity3d tag since it was created.)

解决方案:
您可以使用帆布标量。画布定标器组件是用于控制UI元素的整体规模和像素密度在画布上。这个比例会影响在画布上的一切,包括字体大小和图像边界。你会设置UI规模模式与屏幕大小规模。一旦你这样做,你将会看到X和Y引用解析字段。X和Y的高度是宽度的屏幕设计的游戏。设置屏幕匹配模式匹配宽度或高度动态缩放。设置的匹配因素1。

原文:

You can use Canvas Scalar. The Canvas Scaler component is used for controlling the overall scale and pixel density of UI elements in the Canvas. This scaling affects everything under the Canvas, including font sizes and image borders.

enter image description here

 

1.本站遵循行业规范,任何转载的稿件都会明确标注作者和来源;2.本站的原创文章,请转载时务必注明文章作者和来源,不尊重原创的行为我们将追究责任;3.作者投稿可能会经我们编辑修改或补充。

相关文章
  • Canvas与ValueAnimator

    Canvas与ValueAnimator

    2017-04-28 18:00

  • Android Bitmap和Canvas学习笔记(转)

    Android Bitmap和Canvas学习笔记(转)

    2017-04-28 17:00

  • 21天学习android开发教程之SurfaceView与多线程的混搭

    21天学习android开发教程之SurfaceView与多线程的混搭

    2017-04-27 12:00

  • Android画图学习免费下载

    Android画图学习免费下载

    2017-04-27 11:01

网友点评
e