<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kentem_dev_ko_hattori</author_name>
  <author_url>https://blog.hatena.ne.jp/kentem_dev_ko_hattori/</author_url>
  <blog_title>KENTEM TechBlog</blog_title>
  <blog_url>https://tech.kentem.jp/</blog_url>
  <categories>
    <anon>3D</anon>
    <anon>モバイル</anon>
  </categories>
  <description>Unityの学習を進めていくにつれて、ボタンをクリックした際に特定の処理を実行するためには、いろいろな方法があることを学びました。 本記事では、それらの方法のうち5つを紹介します。 AddListenerで登録する インスペクターから指定する IPointerClickHandlerを実装するような書き方にする Event Triggerを用いる Buttonクラスをオーバーライドする おわりに AddListenerで登録する Buttonコンポーネントを取得し、AddListenerメソッドで引数に指定されたメソッドを実行する方法です。 この書き方は新人研修で学んで以来よく使ってきたため、…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech.kentem.jp%2Fentry%2F2026%2F03%2F13%2F090000&quot; title=&quot;【Unity】クリック時に特定のメソッドを実行する方法集めてみた - KENTEM TechBlog&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/kentem_dev_ko_hattori/20260306/20260306125916.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2026-03-13 09:00:00</published>
  <title>【Unity】クリック時に特定のメソッドを実行する方法集めてみた</title>
  <type>rich</type>
  <url>https://tech.kentem.jp/entry/2026/03/13/090000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
