projectGenerationUserExtensions
Controls list of extensions of files that will be included in the c#.csproj projects that Unity generates.
Read time 1 minuteLast updated 10 days ago
Definition
- Type: Property
- Namespace: UnityEditor
- Assembly: UnityEditor
public static string[] projectGenerationUserExtensions { get; set; }
Remarks
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.
Examples
using UnityEngine;using UnityEditor;public class Example{ [MenuItem("TryMe/SetExtensions")] static void Doit() { EditorSettings.projectGenerationUserExtensions = new[] { "txt", "xml", ".cs", "myfunkyformat"}; }}