コガネブログ

平日更新を目標に Unity や C#、Visual Studio、ReSharper などのゲーム開発アレコレを書いていきます

【Unity】【Odin Inspector】Inspector の入力欄の末尾に文字列を表示できる「SuffixLabel」属性

使用例

f:id:baba_s:20190729195818p:plain

使い方

using Sirenix.OdinInspector;
using UnityEngine;

public class Example : MonoBehaviour
{
    [SuffixLabel( "秒" )]       public float m_time1;
    [SuffixLabel( "秒", true )] public float m_time2;
}

SuffixLabel を変数に適用することで使用できます

関連記事