Has anyone experienced issues with source generators in Unity? I tried installing OneOf.SourceGenerator, and it only works partially. It generates the attribute but fails to generate its partial class. I updated the project to CodeAnalysis version 4.3 and tried it in Unity versions 6 and 2022. mcintyre321/OneOf: Easy to use F#-like ~discriminated~ unions for C# with exhaustive compile time matching
1 Like
I made it work. This library will skip classes in global namespace. Also always make sure that your source analyzer is under Dependecies->Anlyzers in your IDE. Deleting .vs and Library folder and restarting Unity helped.