<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>taiga006</author_name>
  <author_url>https://blog.hatena.ne.jp/taiga006/</author_url>
  <blog_title>Continue(s)</blog_title>
  <blog_url>https://taiga.hatenadiary.com/</blog_url>
  <categories>
    <anon>Unity</anon>
  </categories>
  <description>あるオブジェクト（親）に対してInstantiateで子オブジェクトを任意の数生成したり、あるいはそのオブジェクトの子オブジェクトをまとめて消したりしたいケースは多い。 [ContextMenu(&quot;XXXX&quot;)] はコンテキストメニューに&quot;XXXX&quot;の名前で新たに項目が追加されて自由にメソッドを実行できます。よく使います。 子オブジェクト量産する void GenerateChildren() { for (int i = 0; i &lt; _num; i++) { var parent = this.transform; var instance = Instantiate(_prefab, s…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftaiga.hatenadiary.com%2Fentry%2F2020%2F01%2F18%2F010825&quot; title=&quot;【Unity】子オブジェクトとしてInstantiateしたり、子オブジェクトまとめてDestroyしたり。 - Continue(s)&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/t/taiga006/20200118/20200118010359.gif</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-01-18 01:08:25</published>
  <title>【Unity】子オブジェクトとしてInstantiateしたり、子オブジェクトまとめてDestroyしたり。</title>
  <type>rich</type>
  <url>https://taiga.hatenadiary.com/entry/2020/01/18/010825</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
