This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.Text.RegularExpressions; | |
| using UnityEditor; | |
| /// <remarks> | |
| /// This class need to be placed in Assets/Standard Assets/Editor folder to be compiled before other scripts. | |
| /// See <see href="https://docs.unity3d.com/Manual/ScriptCompileOrderFolders.html"/>. | |
| /// </remarks> | |
| internal sealed class LangVersionPostprocessor : AssetPostprocessor { | |
| private static string OnGeneratedCSProject(string path, string content) { | |
| var pattern = @"<LangVersion>(.*?)<\/LangVersion>"; |