<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hekeke999</author_name>
  <author_url>https://blog.hatena.ne.jp/hekeke999/</author_url>
  <blog_title>ヘケケの模索生活</blog_title>
  <blog_url>https://www.hekeke999.xyz/</blog_url>
  <categories>
    <anon>アプリ開発</anon>
  </categories>
  <description>UIをタップした際にUI以外の部分をタップした時の処理も同時に実行されてしまう問題が発生したのでその対処法をメモしておこうと思います。 UIをタップした際に止めておきたい処理の部分に以下のコードを追加します。 if (EventSystem.current.IsPointerOverGameObject()) { //マウス操作の場合 return; } if (Input.touchCount &gt; 0 &amp;&amp; EventSystem.current.IsPointerOverGameObject(Input.GetTouch(0).fingerId)) { //実機でのタップ操作の場合 ret…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.hekeke999.xyz%2Fentry%2F2019%2F06%2F01%2F175147&quot; title=&quot;【Unity】UIをタップした際にUI以外のタップ処理を無効化する - ヘケケの模索生活&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>2019-06-01 17:51:47</published>
  <title>【Unity】UIをタップした際にUI以外のタップ処理を無効化する</title>
  <type>rich</type>
  <url>https://www.hekeke999.xyz/entry/2019/06/01/175147</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
