AssetImporters.ScriptedImporterAttribute.fileExtensions

Unity · Версия 2020.3 LTS · Scripting · ScriptedImporterAttribute

AssetImporters.ScriptedImporterAttribute.fileExtensions

public string[] fileExtensions;

Описание

Список расширений имен файлов (не включая начальный символ точки), которые обрабатывает импортер по сценарию.

using UnityEngine;
using UnityEditor.AssetImporters;

[ScriptedImporter(1, new[] {"cb", "cube"})]
public class CubeImporter : ScriptedImporter
{
    public override void OnImportAsset(AssetImportContext ctx)
    {
        // ...
    }
}

Обновлено 17 ноября 2026 г.