Why material added to ui panel is not visible in android build but works fine in editor window in unity3d?

微笑、不失礼 提交于 2020-01-06 06:47:21

问题


The material added to the UI Panel is working in the editor window but not working in android build. How to fix this?

Editor Screenshot

Android screenshot

Note:

  1. I have tried adding a shader to "always Included shader" list in the project setting menu. still not fixed.
  2. I'm not altering the shader/material in the code.
  3. This is worked fine in a previous unity version. (my unity version is 2018.3.11f1)
  4. The same material works fine in other game objects (like a cube, etc,.), but not works with any other UI (like buttons, canvas, etc.,)

回答1:


you should check your shader. i think you have another shader change the Render Queue. Add ZTest Off in your shader.It might work



来源:https://stackoverflow.com/questions/55546662/why-material-added-to-ui-panel-is-not-visible-in-android-build-but-works-fine-in

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!