Search Unity

Make a camera only render static objects?

Discussion in 'General Graphics' started by Zomby138, Jan 13, 2021.

  1. Zomby138

    Zomby138

    Joined:
    Nov 3, 2009
    Posts:
    659
    Is it possible to set up a camera to only render static objects? Even better would be only lightmap static.

    Basically Like how light probes render the scene.
     
  2. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    11,754
    Not sure (and kinda interested to know if there’s a simpler way), but can’t you set that up with layers manually?
     
  3. Zomby138

    Zomby138

    Joined:
    Nov 3, 2009
    Posts:
    659
    I'm already using layers for a ton of other things so that would be a royal pain in the ass.

    Basically I want whatever it does when you set your scene view to "Baked Lightmap" and turn off "Show Lightmap Resolution". I can force it to render the objects that way with "SetReplacementShader()" on the camera, but I can't stop it rendering the non-static objects.