Search Unity

Resolved IJobEntity generic jobs

Discussion in 'DOTS Dev Blitz Day 2022 - Q&A' started by Jawsarn, Dec 7, 2022.

  1. Jawsarn

    Jawsarn

    Joined:
    Jan 12, 2017
    Posts:
    245
    Will we see support for generic IJobEntity jobs?
     
  2. DaxodeUnity

    DaxodeUnity

    Unity Technologies

    Joined:
    Aug 5, 2021
    Posts:
    27
    For 1.0, no. But we are definitely interested at looking into this further.
     
    Jawsarn likes this.
  3. Marc-Ducret

    Marc-Ducret

    Joined:
    Apr 24, 2015
    Posts:
    12
    Is there any chance that IJobEntity jobs that rely on a fully specified generic component will be supported more quickly?
    For my use cases (working on deterministic lockstep based multiplayer with interpolation between ticks) support for both is very much needed.
     
  4. DaxodeUnity

    DaxodeUnity

    Unity Technologies

    Joined:
    Aug 5, 2021
    Posts:
    27
    When IJobEntity supports generics, you would still have to constrain to IComponentData, or similar. The time it takes to add the support is yet to be determined while we focus on stabilization and iteration time improvements. To do what you want today, you could do it all with IJobChunk and some hand crafted utility functions :3
     
    Marc-Ducret likes this.