<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>nakamura001</author_name>
  <author_url>https://blog.hatena.ne.jp/nakamura001/</author_url>
  <blog_title>強火で進め</blog_title>
  <blog_url>https://nakamura001.hatenablog.com/</blog_url>
  <categories>
    <anon>Unity</anon>
  </categories>
  <description>Unity の Input Field は今のところ絵文字などを正しく表示できません。キャプチャ画像は Android のものですが iOS の場合にはそもそもユーザの入力やコピペが失敗します。 しかし、データを代入する方法では iOS でも入力可能なので iOS でも対策が必要です。例) &quot;aa🐶bb&quot; を代入 inputField.text = &quot;aa\ud83d\udc36bb&quot;; 表示結果はこうなります。 対応方法 今回の対応方法は絵文字が入力された場合には削除するという方法です。 絵文字はサロゲートペアな文字なのでサロゲートペアな文字を削除する事で実現可能です。コードはこの様になりま…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnakamura001.hatenablog.com%2Fentry%2F20170615%2F1497516123&quot; title=&quot; Input Filed に入力された絵文字を削除するコード - 強火で進め&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/n/nakamura001/20170615/20170615165930.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-06-15 17:42:03</published>
  <title> Input Filed に入力された絵文字を削除するコード</title>
  <type>rich</type>
  <url>https://nakamura001.hatenablog.com/entry/20170615/1497516123</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
