diff --git a/articles/en/vrm0/0_82_runtime_import.html b/articles/en/vrm0/0_82_runtime_import.html index 0eb6c7162..b441742a0 100644 --- a/articles/en/vrm0/0_82_runtime_import.html +++ b/articles/en/vrm0/0_82_runtime_import.html @@ -125,7 +125,10 @@ instance.EnableUpdateWhenOffscreen(); instance.ShowMeshes();

When destroy, related assets(meshes, materials and textures etc...) is destroyed.

-
GameObject.Destroy(instance);
+
// GameObject.Destroy(instance);
+
+// Destroy GameObject not RuntimeGltfInstance
+GameObject.Destroy(instance.gameObject);
 
diff --git a/articles/ja/vrm0/0_82_runtime_import.html b/articles/ja/vrm0/0_82_runtime_import.html index 750a2bc86..04ea530e9 100644 --- a/articles/ja/vrm0/0_82_runtime_import.html +++ b/articles/ja/vrm0/0_82_runtime_import.html @@ -124,7 +124,10 @@ instance.EnableUpdateWhenOffscreen(); instance.ShowMeshes();

使用後に以下のように破棄してください。関連する Asset(Texture, Material, Meshなど)も破棄されます。

-
GameObject.Destroy(instance);
+
// GameObject.Destroy(instance);
+
+// RuntimeGltfInstance ではなくて、その GameObject を Destroy します。
+GameObject.Destroy(instance.gameObject);
 
diff --git a/manifest.json b/manifest.json index 7983f27c9..8bf8a682d 100644 --- a/manifest.json +++ b/manifest.json @@ -4608,7 +4608,7 @@ "output": { ".html": { "relative_path": "articles/en/vrm0/0_82_runtime_import.html", - "hash": "H1v5NSOv4dzNelyXXS3M0q4L2WH2C9G/ZgReeGU3aH0=" + "hash": "z8zTH3HMabHiSm8YT5cw2M/f+gAv78v/fk29uKCzVBw=" } }, "is_incremental": false, @@ -4851,7 +4851,7 @@ "output": { ".html": { "relative_path": "articles/ja/vrm0/0_82_runtime_import.html", - "hash": "09y+kuhgsFhiaGH46SsV+vct0N9DyuSyUy6i0VFw+cA=" + "hash": "EGqBNU3sPKGULDcyNk5yhlBYGpJL4NUjFWQH9rlDNZU=" } }, "is_incremental": false,