From ac7e4cd217b211b3a4ed7be0757773f347f7c897 Mon Sep 17 00:00:00 2001 From: ousttrue Date: Fri, 11 Jun 2021 17:02:03 +0900 Subject: [PATCH] Dispose gameobject --- Assets/UniGLTF/Runtime/UniGLTF/UnityObjectManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/UniGLTF/Runtime/UniGLTF/UnityObjectManager.cs b/Assets/UniGLTF/Runtime/UniGLTF/UnityObjectManager.cs index aa58fe242..cc7607cf7 100644 --- a/Assets/UniGLTF/Runtime/UniGLTF/UnityObjectManager.cs +++ b/Assets/UniGLTF/Runtime/UniGLTF/UnityObjectManager.cs @@ -58,7 +58,7 @@ namespace UniGLTF public void Dispose() { - UnityObjectDestoyer.DestroyRuntimeOrEditor(this); + UnityObjectDestoyer.DestroyRuntimeOrEditor(this.gameObject); } } }