Search Unity

Mesh Building Jobs?

Discussion in 'Entity Component System' started by eric_funktroniclabs, Nov 13, 2019.

  1. eric_funktroniclabs

    eric_funktroniclabs

    Joined:
    Oct 4, 2018
    Posts:
    19
    Are there any jobs we can use in 2019.1 to Build and Combine meshes?
     
  2. GilCat

    GilCat

    Joined:
    Sep 21, 2013
    Posts:
    676
    You will have to make such jobs yourself.
    This project uses jobs to generate and combine meshes for UI.
     
  3. Nyanpas

    Nyanpas

    Joined:
    Dec 29, 2016
    Posts:
    406
    I did this for my own project in which I "procedurally" tessellate triangles for the terrain to divide them into more even shapes so I could get better GPU-instanced shrubbery, and especially since I handle over 80 million instances.

    CombineMeshes must be called on the main thread if you are using that specifically, but in one way a mesh is just a collection of points with a winding order that forms triangles, so you could generate the mesh from scratch based on available inputs, and avoid using CombineMeshes. It all depends on what you intend to use it for.

    Also hasn't the mesh-API been upgraded from 2019.3+ yet?