mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-05-23 11:26:15 -05:00
19 lines
705 B
C#
19 lines
705 B
C#
using UnityEditor;
|
|
using UnityEngine;
|
|
|
|
namespace VRM10.Samples.MToon10Showcase
|
|
{
|
|
[CustomPropertyDrawer(typeof(ShadingToonyShowcase.ShadingToonyEntry))]
|
|
public sealed class ShadingToonyEntryDrawer : PropertyDrawer
|
|
{
|
|
public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
|
|
{
|
|
EditorGUILayout.Slider(
|
|
property.FindPropertyRelative(nameof(ShadingToonyShowcase.ShadingToonyEntry.shadingToonyFactor)),
|
|
0f, 1f);
|
|
EditorGUILayout.Slider(
|
|
property.FindPropertyRelative(nameof(ShadingToonyShowcase.ShadingToonyEntry.shadingShiftFactor)),
|
|
-1f, 1f);
|
|
}
|
|
}
|
|
} |