控制将包含在 Unity 生成的 c# .csproj 项目中的文件扩展名列表。
Use this if you have certain file formats that you'd like to add to the .csproj files for convenient editing. This setting takes a semicolon-separated string of extensions. Leading dots are optional. This setting is specific to a project.
using UnityEngine; using UnityEditor;
public class Example { [MenuItem("TryMe/SetExtensions")] static void Doit() { EditorSettings.projectGenerationUserExtensions = new[] { "txt", "xml", ".cs", "myfunkyformat"}; } }