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.

Feedback Request a sub-topic for SourceGenerators

Discussion in 'Meta-forum Discussion' started by Lurking-Ninja, Jan 2, 2024.

  1. Currently there are many threads in many topics and sub-topics about the growing practice of utilizing Roslyn and the SourceGenerators, both
    ISourceGenerator
    and
    IIncrementalGenerator
    .

    I think it's time to open its own sub-topic under the Scripting topic and gather the threads under one umbrella so it is easier to find them and encourage discussion and questions of the topic of source generation.
     
    CodeSmile and Thundernerd like this.
  2. Lurking-Ninja

    Lurking-Ninja

    Joined:
    Jan 5, 2024
    Posts:
    618
    I guess that's a no.
     
  3. CodeSmile

    CodeSmile

    Joined:
    Apr 10, 2014
    Posts:
    7,263
    I support having a separate Code Generator forum because I can see Code Generators becoming an important cornerstone of editor-tooling.

    Particularly in regards to DOTS / Entities it makes things possible where you'd otherwise have to deal with very complex generic workflows (that eventually fail to provide an improvement, or won't work at all). The (welcome!) lack of subclassing sometimes enforces a pattern that explodes the number of types, and those would lend themselves well to source generation. Polymorphic structs being the most well-known use case to date.