iphone微信小游戏报错

iphone下微信小游戏忽然进不去了。

vConsole中显示log:

Render Pipeline error : the XR layout still contains active passes. Executing XRSystem.EndLayout() right now.

Texture creation failed. ‘R32G32B32A32_SFloat’ is not supported for Render usage on this platform

很是奇怪啊,小游戏里怎么触发了调用XR。
试了很多方式都没找到原因。
想到既然提示了需要调用 XRSystem.EndLayout。那出错的代码估计在这个调用的附近,打开URP脚本搜索该调用,果真搜索到了。
查看前后逻辑,发现需要camera上打开AllowXRRendering选项,才会打开XRSystem。
但小游戏是webgl,本身就不显示AllowXRRendering这个选项,也无法操作。
这种情况下,用记事本打开场景prefab,发现果真这个选项被选中了。用记事本修改,取消选中,保存出包,问题修复.

发表评论?

0 条评论。

发表评论


注意 - 你可以用以下 HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>