Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only.

    Please, do not make any changes to your username or email addresses at id.unity.com during this transition time.

    It's still possible to reply to existing private message conversations during the migration, but any new replies you post will be missing after the main migration is complete. We'll do our best to migrate these messages in a follow-up step.

    On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live.


    Read our full announcement for more information and let us know if you have any questions.

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:
    270
    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:
    13
    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.