Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

Override material? - Can I temporarily override all materials with a single material?

Discussion in 'HDRP Ray Tracing' started by newguy123, Dec 11, 2020.

  1. newguy123

    newguy123

    Joined:
    Aug 22, 2018
    Posts:
    1,248
    Hi Guys

    As the title says. Is it possible to override all my existing materials withy a single material?

    Or temporarily assign a single material to all objects, without loosing the current material assignments?
     
  2. auzaiffe

    auzaiffe

    Unity Technologies

    Joined:
    Sep 4, 2018
    Posts:
    255
    Edit: Sorry for some reason i pasted the wrong message in this conversation.

    The solution i'd use is the one suggest by radiantboy
     
    Last edited: Dec 18, 2020
  3. radiantboy

    radiantboy

    Joined:
    Nov 21, 2012
    Posts:
    1,633
    just make a script to find all meshes and apply the new material during runtime. I did this before when I wanted a special "gold mode" for my game :)