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

Jobs Gizmo Package

Discussion in 'Entity Component System' started by marwi, Sep 28, 2019.

  1. marwi

    marwi

    Joined:
    Aug 13, 2014
    Posts:
    138
    Hello, during unite i prototyped a little helper package to easily draw gizmos from jobs.
    If anyone more familiar with ecs and jobs would like to take a look I made it public (also if anyone is interested in using it but its not rly tested in production obviously).

    https://gitlab.com/marwi/marwi.ecs.jobgizmos

    I basically just queue gizmo data in native arrays and draw them during a static draw gizmo event.
    Originally Id loved to extend the entity command buffer and execute my commands in presentation at the right moment but that would have been a bit more complex ;)
     
  2. DreamingImLatios

    DreamingImLatios

    Joined:
    Jun 3, 2017
    Posts:
    4,223
    Not thread-safe. Use concurrent NativeQueues instead.
     
    marwi likes this.