Skip to content

Commit

Permalink
fix: ifdef around overrideExts ScriptedImporter for 2019 support
Browse files Browse the repository at this point in the history
  • Loading branch information
hybridherbst committed Apr 15, 2021
1 parent 2c03947 commit 0796ec3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions UnityGLTF/Assets/UnityGLTF/Editor/Scripts/GLTFImporter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@

namespace UnityGLTF
{
#if UNITY_2020_2_OR_NEWER
[ScriptedImporter(1, null, overrideExts: new[] { "glb" })]
#else
[ScriptedImporter(1, new[] { "glb" })]
#endif
public class GLTFImporter : ScriptedImporter
{
[SerializeField] private bool _removeEmptyRootObjects = true;
Expand Down

0 comments on commit 0796ec3

Please sign in to comment.