Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unity 2021.2 integration #6

Closed
lupin-de-mid opened this issue Nov 28, 2021 · 4 comments
Closed

Unity 2021.2 integration #6

lupin-de-mid opened this issue Nov 28, 2021 · 4 comments

Comments

@lupin-de-mid
Copy link

lupin-de-mid commented Nov 28, 2021

"C# Source Generator feature is rely on C# 9.0. Currently Unity(2020) does not support C# 9.0 so can not use directly. "
According to https://docs.unity3d.com/2021.2/Documentation/Manual/CSharpCompiler.html
Unity support C# 90 with small exclusion. So may be it is possible to integrate UniyGenerator in Unity Editor without additional sln?

@neuecc
Copy link
Member

neuecc commented Nov 29, 2021

No, Unity has indeed added support for C# 9.0, except for SourceGenerator.
Probably a lot of disruptive work needs to be done, such as supporting the new SDK csproj and incorporating the compile phase against Roslyn.

@neuecc
Copy link
Member

neuecc commented Dec 13, 2021

@neuecc
Copy link
Member

neuecc commented Dec 15, 2021

Sorry, I misunderstood the behavior.
I've added the documentation to make it work, and it works perfectly.
https://github.com/Cysharp/UnitGenerator#use-for-unity

@neuecc neuecc closed this as completed Dec 15, 2021
@lupin-de-mid
Copy link
Author

lupin-de-mid commented Jan 29, 2022

For me i(n unity 2021.2.9f1 ) it works only if I place UnitGenerator.dll in root of Assets

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants