UniVRM/Assets/VRM10_Samples/MToon10Showcase/Editor/CustomEditor/ShadeEntryDrawer.cs
2025-02-07 11:50:24 +09:00

15 lines
573 B
C#

using UnityEditor;
using UnityEngine;
namespace VRM10.Samples.MToon10Showcase
{
[CustomPropertyDrawer(typeof(ShadeShowcase.ShadeEntry))]
public sealed class ShadeEntryDrawer : PropertyDrawer
{
public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
{
EditorGUILayout.PropertyField(property.FindPropertyRelative(nameof(ShadeShowcase.ShadeEntry.shadeColor)));
EditorGUILayout.PropertyField(property.FindPropertyRelative(nameof(ShadeShowcase.ShadeEntry.shadeTexture)));
}
}
}