Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Resolved HybridRendererV2 does not respect RenderLayer with com.unity.entities version 0.51?

Discussion in 'Graphics for ECS' started by MNNoxMortem, Jul 14, 2022.

  1. MNNoxMortem

    MNNoxMortem

    Joined:
    Sep 11, 2016
    Posts:
    723
    Edit2: I thought the RenderLayer broke in 0.51f, but I just lost a change when upgrading from 0.17 to 0.51. Sorry.

    In 0.17 it was specified as
    Code (CSharp):
    1.         em.SetSharedComponentData(entity,
    2.                                  new RenderMesh
    3.                                  {
    4.                                  ...
    5.                                      layer = 6
    6.                                  });
    In 0.50+ it is now specified as part of the RenderMeshDescription:
    Code (CSharp):
    1.  
    2. var desc = new RenderMeshDescription(
    3. ...
    4. layer: 6);
    5.  
    Edit1: Wrong section. Should be DOTS Graphics.
     
    Last edited: Jul 14, 2022