Search Unity

Game camera and Editor view don't render objects on certain layers

Discussion in 'General Graphics' started by Paz_, Dec 11, 2019.

  1. Paz_

    Paz_

    Joined:
    Apr 2, 2018
    Posts:
    2
    1.PNG
    As pictured here the editor view doesn't render objects when they are put on the last four layers.
    2.PNG
    The main camera set as a child of the to the player object doesn't render them either.
    The thing that preplexes me is the the fifth to last layer, ground, is one created by me instead of being the default unity one and putting objects on that layer renders them unlike on the other four layers.
    Another thing to note is that those objects always cast shadows anyway.
    The unity version is 2019.3.0f1 and I'm using URP for this.
    I'm at a loss as to what could be the cause of this.
     
  2. phil_lira

    phil_lira

    Unity Technologies

    Joined:
    Dec 17, 2014
    Posts:
    584
    Is it possible that this `URP Base Renderer` you created is filtering rendering for these layers?
    In the renderer you can filter layers by setting Default Layer.

    If the renderer is not filtering any layers then it might be an issue we need further investigation. In that case could you submit a bug report?
     
  3. Paz_

    Paz_

    Joined:
    Apr 2, 2018
    Posts:
    2
    Your suggestion fixed it, the layers don't get added automatically and I didn't think to check the URP Base Renderer asset.
    Thank you so much for your help.
     
  4. Nonym

    Nonym

    Joined:
    Oct 18, 2014
    Posts:
    49
    Thank you. I was struggling with this problem.
     
    DavidZobrist likes this.
  5. wolilio

    wolilio

    Joined:
    Aug 19, 2019
    Posts:
    29
    oh, same here
     
  6. Phillips_Albright

    Phillips_Albright

    Joined:
    May 2, 2021
    Posts:
    6
    How do I add new layers in the URP? I am running into the same problem and I am not sure how to check the URP Base Renderer asset
     
  7. Speedomon

    Speedomon

    Joined:
    Jun 13, 2015
    Posts:
    6
    Thank you! It was driving me nuts.
    @Phillips_Albright. You probably have a folder Assets/URP. In there, you should find an asset with your URP render data (it has the extension .asset)
    Check if the layer that you want to see is checked in "Filtering"