<?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>
    <anon>UniRx</anon>
  </categories>
  <description>UniRxとは この記事でのバージョン Unity 6000.3.4f1 UniRx 7.1.0 はじめに UniRxを使って何かしらのイベントを購読した際、 AddToを使えば「オブジェクトが消さたら購読も自動解除」という事が出来るのでとても便利です。 //ボタンば押された時を購読、gameObjectが消されたら購読を破棄 _button.OnPointerDownAsObservable().Subscribe(OnPointerDown).AddTo(gameObject) このAddToについて、ちょっと勘違いしていた事があったので今回はその紹介です！ AddTo(gameObjec…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkan-kikuchi.hatenablog.com%2Fentry%2FUniRx_AddTo&quot; title=&quot;UniRxのAddTo(gameObject)とAddTo(this)はほぼ同じ、OnDestroyが実行されなくてもAddToは有効【Unity】【UniRx】 - (: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/20260420/20260420171351.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2026-04-27 22:53:41</published>
  <title>UniRxのAddTo(gameObject)とAddTo(this)はほぼ同じ、OnDestroyが実行されなくてもAddToは有効【Unity】【UniRx】</title>
  <type>rich</type>
  <url>https://kan-kikuchi.hatenablog.com/entry/UniRx_AddTo</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
