Make material always culled.

Is there a way to make a material that will always be invisible (ie. anything using it will not be rendered). Simply setting the material to be completely transparent might not save as much processing.

If you don’t want any attempt at rendering it at all:

You can disable any component attached to a game object by setting the enabled property to false.

gameObject.GetComponent<Renderer>().enabled = false;

If you still want the camera to attempt to render it:

You can change the Alpha of a material’s color to 0 (transparent):

someMaterial.color.a = 0;

Sources: