<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kan_kikuchi</author_name>
  <author_url>https://blog.hatena.ne.jp/kan_kikuchi/</author_url>
  <blog_title>(:3[kanのメモ帳]</blog_title>
  <blog_url>https://kan-kikuchi.hatenablog.com/</blog_url>
  <categories>
    <anon>Unity</anon>
  </categories>
  <description>この記事でのバージョン Unity 5.5.0p1 はじめに MonoBehaviourには無効になったときに呼ばれるOnDisableと、 破棄される時に呼ばれるOnDestroyという関数があります。 なお、GameObjectを削除すると両方呼ばれます。イメージとしては以下のような感じ。 using UnityEngine; public class NewBehaviourScript : MonoBehaviour { private void OnDisable () { Debug.Log(&quot;OnDisable&quot;); } private void OnDestroy(){ Deb…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkan-kikuchi.hatenablog.com%2Fentry%2FOnApplicationQuit&quot; title=&quot;OnDisableやOnDestroyをエディタを止めた時には実行しないようにする【Unity】 - (:3[kanのメモ帳]&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/k/kan_kikuchi/20170201/20170201101807.gif</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-02-27 07:52:41</published>
  <title>OnDisableやOnDestroyをエディタを止めた時には実行しないようにする【Unity】</title>
  <type>rich</type>
  <url>https://kan-kikuchi.hatenablog.com/entry/OnApplicationQuit</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
