EditorSettings.projectGenerationUserExtensions

Cambiar al Manual
public static string[] projectGenerationUserExtensions ;

Descripción

Controls list of extensions of files that will be included in the c# .csproj projects that Unity generates.

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. In addition to these extensions, there is also a hardcoded built-in list of extensions that is always included at EditorSettings.projectGenerationBuiltinExtensions.

using UnityEngine;
using UnityEditor;

public class Example { [MenuItem("TryMe/SetExtensions")] static void Doit() { EditorSettings.projectGenerationUserExtensions = new[] { "txt", "xml", ".cs", "myfunkyformat"}; } }
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961