DrawMeshInstanced does not work in build
It seems like DrawMeshInstanced does not work in standalone player. In Editor it works great and I also ensure that each objects material has its instancing flag set. When I do a build my instances are just not visible. Does anybody have experience with this?
Answer by Peaj · Feb 23, 2018 at 05:17 PM
I solved it myself. I was setting the 'enable instancing' flag at runtime so I wont have to rely on the how material creator to check it. While that works great in edit mode it does not work in builds because the compiler strips the (seemingly unused) instancing branch from the shaders
Your answer
Follow this Question
Related Questions
Build is not rendering the game properly 0 Answers
Optimizing Shader Compiler for HDRP 0 Answers
Why does everything render in the scene editor, but not after I build it? 0 Answers
Can only see canvas, skybox and particle systems in build 0 Answers
Why do sprites go invisible when building for WebGL,Sprites become invisible when building for WebGL 0 Answers