Version: 2023.2
言語: 日本語

EditorSettings.projectGenerationUserExtensions

マニュアルに切り替える
public static string[] projectGenerationUserExtensions ;

説明

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"}; } }