<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>makijiam</author_name>
  <author_url>https://blog.hatena.ne.jp/makijiam/</author_url>
  <blog_title>Mono Materials</blog_title>
  <blog_url>https://amacara.net/</blog_url>
  <categories>
    <anon>Unity</anon>
    <anon>Script</anon>
  </categories>
  <description>需要があるかどうかは分からないですけど、自分のメモ程度に少しまとめてみます。ただ内容的には至極単純ではあります。 シーンを跨いで使いたいGameObject（例えば、Managerクラスだったり、BGMだったり）があるときはDontDestroyOnLoad() を使って管理しているかと思います。ただ、このDontDestroyOnLoad() はルート階層にあるGameObjectでないと無視されて、下記のワーニングが出ちゃいます。 DontDestroyOnLoad only work for root GameObjects or components on root GameObjec…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Famacara.net%2Fentry%2F2017%2F10%2Fparentoff_to_dontdestroyonload%2F&quot; title=&quot; 親要素を持つGameObjectをDontDestroyOnLoadさせる - Mono Materials&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-10-25 00:53:55</published>
  <title> 親要素を持つGameObjectをDontDestroyOnLoadさせる</title>
  <type>rich</type>
  <url>https://amacara.net/entry/2017/10/parentoff_to_dontdestroyonload/</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
