書き間違え

This commit is contained in:
ousttrue
2021-09-09 14:01:26 +09:00
parent e83ede77c9
commit 8fcd318c83
2 changed files with 8 additions and 2 deletions

View File

@@ -75,5 +75,8 @@ instance.ShowMeshes();
When destroy, related assets(meshes, materials and textures etc...) is destroyed.
```cs
GameObject.Destroy(instance);
// GameObject.Destroy(instance);
// Destroy GameObject not RuntimeGltfInstance
GameObject.Destroy(instance.gameObject);
```

View File

@@ -71,5 +71,8 @@ instance.ShowMeshes();
使用後に以下のように破棄してください。関連する Asset(Texture, Material, Meshなど)も破棄されます。
```cs
GameObject.Destroy(instance);
// GameObject.Destroy(instance);
// RuntimeGltfInstance ではなくて、その GameObject を Destroy します。
GameObject.Destroy(instance.gameObject);
```