This commit is contained in:
PoChang007
2021-09-09 05:42:51 +00:00
parent c0897c71bd
commit 6b41086ca1
3 changed files with 10 additions and 4 deletions

View File

@@ -125,7 +125,10 @@ instance.EnableUpdateWhenOffscreen();
instance.ShowMeshes();
</code></pre>
<p>When destroy, related assets(meshes, materials and textures etc...) is destroyed.</p>
<pre><code class="lang-cs">GameObject.Destroy(instance);
<pre><code class="lang-cs">// GameObject.Destroy(instance);
// Destroy GameObject not RuntimeGltfInstance
GameObject.Destroy(instance.gameObject);
</code></pre>
</article>
</div>

View File

@@ -124,7 +124,10 @@ instance.EnableUpdateWhenOffscreen();
instance.ShowMeshes();
</code></pre>
<p>使用後に以下のように破棄してください。関連する Asset(Texture, Material, Meshなど)も破棄されます。</p>
<pre><code class="lang-cs">GameObject.Destroy(instance);
<pre><code class="lang-cs">// GameObject.Destroy(instance);
// RuntimeGltfInstance ではなくて、その GameObject を Destroy します。
GameObject.Destroy(instance.gameObject);
</code></pre>
</article>
</div>

View File

@@ -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,