Experimental: this API is experimental and might be changed or removed in the future.

ScriptedImporterAttribute.fileExtensions

切换到手册
public string[] fileExtensions ;

描述

脚本化导入器处理的文件扩展名列表,不带前导句点字符。

最少一个,不区分大小写。

using UnityEngine;
using UnityEditor.Experimental.AssetImporters;

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