- Home /
Graphics.DrawMeshInstancedIndirect not working in 2018.1, any fix?
I'm trying out the example code in the documentation for 2018.1. https://docs.unity3d.com/ScriptReference/Graphics.DrawMeshInstancedIndirect.html
I'm using the example C# code and the Surface Shader example. I assign a simple cube as the mesh but when I then hit Play there is only one cube being rendered, and it is pink. It does not matter how many instances I set the count to, I only see one pink cube. I also tried using a standard material in Unity and checking the Enable GPU instancing checkbox, I still only get one box rendered, but this time the material is working.
However if I increase the instance count it sure hits the performance drastically, so something is happening, but nothing more is being rendered.
Is there a way to fix this? I would like it to work with the standard shader in 2018.1, I'm going to use it to render a large field of grass.
Your answer
![](https://koobas.hobune.stream/wayback/20220612163847im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
GPU programming with Unity 3 Answers
What GPU, CPU for Unity? 2 Answers
unwanted cubemap 0 Answers
GPU Skinning on iOS Devices? 2 Answers