- Home /
Numbers in a path?
I'm trying to change a shader invisible, but the 03 is messing this up.
renderer.03.color.a = 0;
Comment
I'm not sure what you are trying to do. $$anonymous$$aybe:
renderer.materials[3].color.a = 0.0;
or
renderer.material.color.a = 0.0;
Did you try the two commands above? Can you post the script that is generating the error?
Answer by Graham-Dunnett · Jun 17, 2013 at 10:27 AM
Your renderer does not have a field called 03
. You might have a material which you've called 03
, but, you'd need to look it up in the materials
array.