Hi!
I am currently trying out Roslyn Code Generators and am currently working on something harkening back to the good old Times of GenerateAuthoringComponent in older ECS Versions. However I seem to have run into somewhat of a roadblock, when it comes to generate the Authroring Behaviours.
My Code Generator seems to work fine. When I inspect the Solution in Rider, the Authoring file is there and has no compilation errors. But I cannot add it as a Component to a GameObject. I also compared my generated code to some old sample code from the Entities 0.17 days with the GenerateAuthoringComponent Generator. I was hoping maybe to be able to browse old Entities code, but it doesnt seem to be publicly available? I probably need to do something special for unity to recognize my Generated Behaviour as a component, but my searches so far only have lead to some old unresolved threads. That’s why I started this thread in hope someone from the Unity Team could share some wisdom about Roslyn Code Generators. I am using an Incremental Code Generator. The whole code is on github. Here is a link to the specific Generator in Question: