For multiple gltf, glb importer conflicts.

This commit is contained in:
ousttrue
2022-06-06 16:43:15 +09:00
parent b8b1b69248
commit 5773281ca2
2 changed files with 10 additions and 2 deletions

View File

@@ -7,7 +7,11 @@ using UnityEditor.Experimental.AssetImporters;
namespace UniGLTF
{
[ScriptedImporter(1, "glb")]
#if UNITY_2020_2_OR_NEWER
[ScriptedImporter(1, null, overrideExts: new[] { "glb" })]
#else
[ScriptedImporter(1, new[] { "glb" })]
#endif
public class GlbScriptedImporter : GltfScriptedImporterBase
{
public override void OnImportAsset(AssetImportContext ctx)

View File

@@ -7,7 +7,11 @@ using UnityEditor.Experimental.AssetImporters;
namespace UniGLTF
{
[ScriptedImporter(1, "gltf")]
#if UNITY_2020_2_OR_NEWER
[ScriptedImporter(1, null, overrideExts: new[] { "gltf" })]
#else
[ScriptedImporter(1, new[] { "gltf" })]
#endif
public class GltfScriptedImporter : GltfScriptedImporterBase
{
public override void OnImportAsset(AssetImportContext ctx)