*** Sorry! *** I realised straight after posting this that it’s “Unlit”, not “Unit”. Dumb me.
I’m trying to access the Particles/StandardUnit shader in a script but it isn’t working for me. I’m using this line of code…
Material mat = new Material(Shader.Find("Particles/StandardUnit"));
It gives this error…
ArgumentNullException: Value cannot be null.
Parameter name: shader
I can use the Particles/StandardUnit shader in the Inspector and get at other shaders using code, so I’m stumped as to what could be causing this.