【问题标题】:Unity Gameobjects rendering in the wrong position on android but renders fine in editor and mac buildUnity Gameobjects 在 android 上的错误位置渲染,但在编辑器和 mac 构建中渲染良好
【发布时间】:2019-12-03 01:52:01
【问题描述】:

我的 2d 游戏对象在 android 上呈现在错误的位置时遇到问题。我正在构建一个砖块克隆克隆并使用脚本来读取每个级别应该如何从文本文件构建的体系结构(1 是块 0 是空白空间)。关卡渲染脚本链接如下。该问题仅发生在android上。在我所做的 Mac 版本中,一切都呈现得与编辑器中的一样。我尝试更改我的逻辑以使用不可见的游戏对象来指导放置块的位置但没有任何变化。我怀疑 WWW 阅读器可能读错了文件,但我非常怀疑。 https://gist.github.com/Kalela/3a27878f7faa83f8014b0e5aaff24d15。 (脚本)发布它在编辑器中与在 Android 设备上的外观图像。How the level looks on render. The left blocks are shifted down in the android build for some reason but not in the editor or the mac build

【问题讨论】:

    标签: android unity3d


    【解决方案1】:

    原来问题在于 WWW 类如何读取文本文件。我切换到了一个非常棒的插件,叫做 Better Streaming Assets,它提供跨平台的流媒体资产读取。之后我的关卡渲染得很好。

    【讨论】:

      猜你喜欢
      • 2019-10-05
      • 1970-01-01
      • 1970-01-01
      • 2014-10-22
      • 2015-03-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-02-23
      相关资源
      最近更新 更多