Merge pull request #1095 from Santarh/nullAccess

fix MissingReferenceException
This commit is contained in:
ousttrue
2021-07-05 18:56:32 +09:00
committed by GitHub

View File

@@ -66,7 +66,10 @@ namespace UniGLTF
public void Dispose()
{
UnityObjectDestoyer.DestroyRuntimeOrEditor(this.gameObject);
if (this != null && this.gameObject != null)
{
UnityObjectDestoyer.DestroyRuntimeOrEditor(this.gameObject);
}
}
}
}