ScriptedImporterAttribute.overrideExts の使い方が間違っていた

* 新規の glb/gltf を asset に投入したときに、importer が発動しなくなっていた
This commit is contained in:
ousttrue 2022-06-17 15:30:51 +09:00
parent e436811552
commit 4eccef8713
2 changed files with 8 additions and 0 deletions

View File

@ -8,7 +8,11 @@ using UnityEditor.Experimental.AssetImporters;
namespace UniGLTF
{
#if UNITY_2020_2_OR_NEWER
#if UNIGLTF_DISABLE_DEFAULT_GLB_IMPORTER
[ScriptedImporter(1, null, overrideExts: new[] { "glb" })]
#else
[ScriptedImporter(1, new[] { "glb" })]
#endif
#else
[ScriptedImporter(1, new[] { "glb" })]
#endif

View File

@ -8,7 +8,11 @@ using UnityEditor.Experimental.AssetImporters;
namespace UniGLTF
{
#if UNITY_2020_2_OR_NEWER
#if UNIGLTF_DISABLE_DEFAULT_GLTF_IMPORTER
[ScriptedImporter(1, null, overrideExts: new[] { "gltf" })]
#else
[ScriptedImporter(1, new[] { "gltf" })]
#endif
#else
[ScriptedImporter(1, new[] { "gltf" })]
#endif