Merge pull request #1681 from ousttrue/fix/add_overrideExts

For multiple gltf, glb importer conflicts.
This commit is contained in:
ousttrue
2022-06-08 16:19:31 +09:00
committed by GitHub
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)