Search Unity

Trying to create material from Standard Shader in script

Discussion in 'Shaders' started by alestane, Mar 5, 2015.

  1. alestane

    alestane

    Joined:
    Sep 26, 2014
    Posts:
    13
    In my previous code, I was creating one-off materials to layer on top of an object to make it flash a particular color. So that the underlying appearance would show through, these materials used the "Transparent/Diffuse" shader.

    I'd like to convert to use the Transparent mode of the new Standard shader in Unity 5, but I can't figure out how to set the Rendering Mode of the new material to Transparent. There is no SetTag mode.

    Is there something I'm missing?