<?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 6000.3.4f1 Unity 6000.4.5f1 はじめに UnityのMonoBehaviourにはコンポーネントが無効になった時や、GameObjectが非アクティブになった時に呼ばれるOnDisableというメソッドがあります。 OnDisableでログが出るようして確認してみると以下のような感じに。 private void OnDisable() { Debug.Log($&quot;OnDisable : {name}&quot;); } このOnDisableはDestroyされた際にも呼ばれるのですが、その挙動がUnity6.4から微妙に変わったようなので…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkan-kikuchi.hatenablog.com%2Fentry%2FDestroy_OnDisable&quot; title=&quot;Unity6.4からDestroy時に呼ばれるOnDisableのタイミングが微妙に変わってる件【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/20260502/20260502194507.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2026-05-07 07:57:44</published>
  <title>Unity6.4からDestroy時に呼ばれるOnDisableのタイミングが微妙に変わってる件【Unity】</title>
  <type>rich</type>
  <url>https://kan-kikuchi.hatenablog.com/entry/Destroy_OnDisable</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
