<?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>
    <anon>Unity3d</anon>
  </categories>
  <description>Unityのフォーラムで議論されていたHPのメーター(あちらではHealth Barって言うんですね)の実装についての議論が興味深かったので紹介。どの実装も参考になりましたが一番シンプルな実装としてEric5h5さんの「アルファ付き画像+Cutoff」を使った実装を紹介。 Health Bar UI http://forum.unity3d.com/threads/42813-Health-Bar-UI この実装ではプログラムはこの様にCutoffのしきい値を変更するだけで済んでしまいます。 function Update () { renderer.material.SetFloat(&quot;_C…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnakamura001.hatenablog.com%2Fentry%2F20110617%2F1308294355&quot; title=&quot;HPのメーターの実装方法 - 強火で進め&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>2011-06-17 16:05:55</published>
  <title>HPのメーターの実装方法</title>
  <type>rich</type>
  <url>https://nakamura001.hatenablog.com/entry/20110617/1308294355</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
