Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

DOTS + LWP and 2D rendering order

Discussion in 'Data Oriented Technology Stack' started by Noxalus, Jul 17, 2019.

  1. Noxalus

    Noxalus

    Joined:
    Jan 9, 2018
    Posts:
    33
    Hello everyone,

    Recently I switched my project to LWP to be able to easily create shader using Shader Graph, but from what I understood, the multiple camera rendering is disabled in LWP and I use DOTS to render a large amount of sprites using
    Code (CSharp):
    1. Graphics.DrawMeshInstanced
    giving it a specific camera to be able to handle the rendering order (using the depth property).

    As I can't do that now, how am I supposed to handle the rendering order of these sprites among the ones rendered in the canvas?

    Thank you in advance for your help.