<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>atsuhiro-me</author_name>
  <author_url>https://blog.hatena.ne.jp/atsuhiro-me/</author_url>
  <blog_title>みーのぺーじ</blog_title>
  <blog_url>https://pc.atsuhiro-me.net/</blog_url>
  <categories>
    <anon>Unity</anon>
  </categories>
  <description>Unityは多くのプラットフォームで動作しますが、プラットフォーム毎に特別な処理をしたいことも多いはずです。例えば、PCでは十字キーで操作するが、iPhoneなどのiOSデバイスではタッチパネルで操作する、というように、プラットフォームで入力方法が違うためにそれぞれに対応したプログラムを作成しなければならない、などです。 Booでは、ifdef を使用します。 ifdefはコンパイル時に、指定したプラットフォームならばそのブロックをコンパイルする、という意味らしく、例えば以下のように記述すると、実行中のプラットフォームが何であるかが取得できます。 ちなみにifdef notを使用すれば、指定し…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpc.atsuhiro-me.net%2Fentry%2F2013%2F04%2F09%2F000000&quot; title=&quot;UnityでOS毎の処理を書く - みーのぺーじ&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>2013-04-09 00:00:00</published>
  <title>UnityでOS毎の処理を書く</title>
  <type>rich</type>
  <url>https://pc.atsuhiro-me.net/entry/2013/04/09/000000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
