【问题标题】:Unity UI Elements give different errors with different resolutionUnity UI Elements 给出不同分辨率的不同错误
【发布时间】:2020-12-13 15:59:51
【问题描述】:

我正在尝试制作简单的“植物大战僵尸”游戏。我设置了背景和方块来指定 AI 应该在哪里生成或玩家放置他们的物品(例如植物)的位置。但我对分辨率和规模有很大的问题。几天来,我一直在尝试理解和解决这个问题。我无法将所有元素都适合游戏场景。我尝试的每个解决方案都会产生另一个问题

这些是我尝试解决方案时遇到的问题图片

It's my standart cansvas settings(1920*1080 resolution)

Those are squares with 16:9 resolution.It looks normal(I stretched all squares on canvas)

But If I change resolutin to 4:3 I get that problem(squares still be stretched)

If I don't stretch squares on canvas, I meet with that problem(The squares are either out of bond or much inside for some resolutions)

任何帮助将不胜感激。谢谢!

【问题讨论】:

    标签: unity3d canvas scale


    【解决方案1】:

    你可以试试这个: - 在画布上更改为“屏幕匹配模式:匹配宽度或高度”。 - 画布上的“每单位参考像素:100”。 - 并设置图像锚点中心。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-09-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-01-02
      • 1970-01-01
      • 2016-10-05
      相关资源
      最近更新 更多