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

Does Dots work with Universal Render Pipeline for 2D ?

Discussion in 'Graphics for ECS' started by Brainshack, Oct 8, 2019.

  1. Brainshack

    Brainshack

    Joined:
    Mar 1, 2013
    Posts:
    24
    Hey,

    just wondering if I can use ECS with the Universal Render Pipeline for 2D? I read that ECS has no conversion for Sprites yet and now I am wondering if there maybe is some sort of Hybrid aproach to use Game Objects for Rendering?
     
    jGate99 likes this.
  2. Shadow007

    Shadow007

    Joined:
    Jun 11, 2013
    Posts:
    19
    Yes you can do ECS in 2D. There are some good tutorials on the Unity Code Monkey site to get started with the basics of how you might do it. Here is 2 examples (there are others on working with ECS and sprites):
    https://unitycodemonkey.com/video.php?v=6eV9NR3Vb9U
    https://unitycodemonkey.com/video.php?v=tvi44I_SK3w

    Also there is a thread here on the forums about rendering lots of sprites with animations which is a little more complex but also more efficient (there are 3 sprite rendering systems in this thread, two on github):
    https://forum.unity.com/threads/200k-dynamic-animated-sprites-at-80fps.695809/

    Those should get you started. I've just started working on 2D recently as well, enjoy!
     
    Zyblade likes this.