mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-09-09 12:29:23 -05:00
Merge pull request #1681 from ousttrue/fix/add_overrideExts
For multiple gltf, glb importer conflicts.
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user