Hey folks, I realise this question can be asked in both the shaders and the coding sections of the forum, so I just picked one.
Anyway, the question in the title already asks it, but I know for a fact that you can change the render queue order of objects through C# code, as I have managed to solve a render order problem with that. However, that’s only part of my required sollution. After applying a lot of google-fu whenever I had the time, I have come up empty. I know that there is a Cull option in shader code, but I’ve yet been able to successfully compile the shader successfully after editing the original Unity 5 shader, because either I end up with a completely empty MonoDevelop and a broken shader file, or the shader simply won’t be run by Unity.
I’m using the Mobile\Particles\AlphaBlended shader to make (partially) transparent planes more manageable for mobile devices, but it has the backface culling property set to off. I would like to know; is there an easy way to copy that shader and make the necessarry edit? Or can I perhaps change the shader property through C# code like I can with renderQueue? The Unity documentation seems awfully sparse on the subject.