Search Unity

Resolved Building the game ruined a shader (how can be possible?!)

Discussion in 'Shaders' started by mfatihbarut, Jan 28, 2021.

  1. mfatihbarut

    mfatihbarut

    Joined:
    Apr 11, 2018
    Posts:
    1,059
    Hi all,
    I pressed the build button and it changed a moss shader effect to this (normal the first abnormal the second.)
    Besides, after that even imported asset's material changed to this too.
    I reimported the texture folder of the asset and it is corrected in the scene now.
    But when I build the project it turns to "invader green moss" again.
    Help, please....

    upload_2021-1-28_22-40-15.png upload_2021-1-28_22-41-34.png
     
  2. bgolus

    bgolus

    Joined:
    Dec 7, 2012
    Posts:
    12,342
    My best guess is the shader you're using isn't supported on the platform or graphics tier you're building to, so it's falling back to a simpler shader. But without knowing a lot more I can't say for sure. You should contact the author of the asset.
     
  3. mfatihbarut

    mfatihbarut

    Joined:
    Apr 11, 2018
    Posts:
    1,059
    I used that build tens of times before in the same platform. That is not the problem, it suddenly got broken.
     
  4. mfatihbarut

    mfatihbarut

    Joined:
    Apr 11, 2018
    Posts:
    1,059
    I imported whole package again with the cost of 3 hours of re-building time but it is gone at least...