mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-05-14 14:29:52 -05:00
ScriptedImporterAttribute.overrideExts の使い方が間違っていた
* 新規の glb/gltf を asset に投入したときに、importer が発動しなくなっていた
This commit is contained in:
parent
e436811552
commit
4eccef8713
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user