问题
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:
- I have tried adding a shader to "always Included shader" list in the project setting menu. still not fixed.
- I'm not altering the shader/material in the code.
- This is worked fine in a previous unity version. (my unity version is 2018.3.11f1)
- 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