コガネブログ

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

【Unity】【Odin - Inspector and Serializer】ラベルの幅を調整する「LabelWidth」属性

目次

「LabelWidth」属性

「LabelWidth」属性を使用すると
ラベルの幅を調整できます

f:id:baba_s:20170804122822p:plain

using Sirenix.OdinInspector;
using UnityEngine;

public class Example : MonoBehaviour
{
    public int a1;

    [LabelWidth( 32 )] public int a2;
}

使い方

下記の様に記述するだけで使用できます

[LabelWidth( 32 )] public int a2;

参考サイト様

Odin Inspector and Serializer | Improve your workflow in Unity