Search Unity

Setting shader properties on multiple shaders for a single material

Discussion in 'Shaders' started by aflesher, Sep 11, 2017.

  1. aflesher

    aflesher

    Joined:
    Dec 12, 2013
    Posts:
    28
    I have a material that switches between a few different shaders depending on which effects I want display. However I've found that using the inspector to set the shader properties for a material is very handy.

    Is there an easy way to set properties for a few different shaders on a single material?
     
  2. MSplitz-PsychoK

    MSplitz-PsychoK

    Joined:
    May 16, 2015
    Posts:
    1,278
    I don't think there is a way to do that, and I think it's also easier and more optimized to have multiple materials instead of 1 material for multiple shaders. You can change which material you are using by setting it in renderer for the object to display through code.
     
    aflesher likes this.