Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Rendermesh Layer

Discussion in 'Graphics for ECS' started by learc83, Apr 15, 2019.

  1. learc83

    learc83

    Joined:
    Feb 28, 2018
    Posts:
    41
    I noticed that the RenderMesh has a layer field. Is the render system currently ignoring this? When I set it to a custom layer, it looks like it's still behaving as if it's layer 0.

    I'm trying to set it up so that specific lights affect different groups of meshes.
     
  2. tertle

    tertle

    Joined:
    Jan 25, 2011
    Posts:
    3,753
    As far as I'm aware there are no references of RenderMesh.layer within the Unity.Rendering package so it does not appear to be used at this moment.
     
  3. m506

    m506

    Joined:
    Dec 21, 2015
    Posts:
    93
    So, can you please clarify how I can prevent an entity from being rendered in another way? if the layer culling could be implemented it would be perfect.