Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Shader changes/corrupted after build sometimes randomly

Discussion in 'Shaders' started by mbowen89, Sep 18, 2014.

  1. mbowen89

    mbowen89

    Joined:
    Jan 21, 2013
    Posts:
    639
    So I have my own vertex color lit shader, and works great and always has, but about 5% of the time when I build my app for testing or whatever once I run it on the Android device that object is completely gray!

    I know it's not just my device because I sent a random build to my friend who has a Kindle and he noticed it too.

    It ALWAYS looks ok in the editor.

    So this last time I noticed my build did this, I built and ran again, still looked the same. Then I built and ran one more time, and this time it opens up just fine.

    Is it something that Unity is doing while building the APK?
     
  2. mbowen89

    mbowen89

    Joined:
    Jan 21, 2013
    Posts:
    639
    I feel like this is a pretty important issue... did I post in the wrong place?

    I can't just build and upload, I have to build and preview on device every time to make sure a "corrupt" shader wasn't built or something.