mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-05-17 00:02:29 -05:00
15 lines
573 B
C#
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)));
|
|
}
|
|
}
|
|
} |