Merge pull request #797 from ousttrue/fix/unity_2020_ScriptedImporterEditor

base.OnEnable が必用
This commit is contained in:
PoChang007
2021-03-17 18:39:24 -09:00
committed by GitHub
2 changed files with 4 additions and 0 deletions

View File

@@ -17,6 +17,8 @@ namespace UniGLTF
public override void OnEnable()
{
base.OnEnable();
m_importer = target as GlbScriptedImporter;
m_parser = new GltfParser();
m_parser.ParsePath(m_importer.assetPath);

View File

@@ -17,6 +17,8 @@ namespace UniGLTF
public override void OnEnable()
{
base.OnEnable();
m_importer = target as GltfScriptedImporter;
m_parser = new GltfParser();
m_parser.ParsePath(m_importer.assetPath);