Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

Is it possible to modify code using roslyn in Unity ?

Discussion in 'Experimental Scripting Previews' started by Florian-Nouviale, Jun 1, 2022.

  1. Florian-Nouviale

    Florian-Nouviale

    Joined:
    Mar 14, 2013
    Posts:
    54
    Hi,
    I've seen that there are code generator functionalities in Unity, but my need is a bit different, I would like to update scripts (like Unity does when it opens a project on a newer version), to prevent or at least limit breaking changes when I update my package.
    My use case would also require to be able to use Microsoft.CodeAnalysis.CSharp.dll. For now I depend on com.unity.code-analysis that is deprecated for this