以下の内容はhttps://baba-s.hatenablog.com/entry/2017/12/28/150000より取得しました。


【Unity】Inspector にゲージを表示する PropertyAttribute「StatsBarAttribute」紹介

はじめに

https://gist.github.com/LotteMakesStuff/b8853a16de3e680dc1c326fe6f5ebd7e

「StatsBarAttribute」は Inspector にゲージを表示する PropertyAttribute です

使用例

using UnityEngine;

public class Example : MonoBehaviour
{
    [StatsBar( "max", StatsBarColor.Green )] public float hp;
    [StatsBar( "max", StatsBarColor.Blue )] public float mp;

    public float max;
}

f:id:baba_s:20171228134403p:plain

関連記事




以上の内容はhttps://baba-s.hatenablog.com/entry/2017/12/28/150000より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14