うにてぃブログ

主にUnityとC#に関する記事を書いていきます

2020-03-11から1日間の記事一覧

【Unity】【CustomPropertyDrawer】Inspector の Color フィールドを拡張する

using UnityEditor; using UnityEngine; [CustomPropertyDrawer(typeof(Color))] public class ColorPropertyDrawer : PropertyDrawer { private const int ColorMax = 4; private SerializedProperty[] _rgba; private Color _color = new Color(); private…