Search Unity

Rendering a prefab with material X

Discussion in 'Scripting' started by zedz, May 12, 2018.

  1. zedz

    zedz

    Joined:
    Aug 31, 2013
    Posts:
    255
    This must be quite simple but searching I can't find it

    eg I I dont want to change a prefabs (instance's) material, I just want to render it twice in a frame, once with the normal material and then again with material X.
    I know how to do this with a single mesh with 'DrawMeshNow' or 'DrawMesh' but I want to draw all the meshes of a prefab (i.e. a skinned multiple mesh)
    whats the best way? In the Camera Post Render I assume but how
    cheers Zed