mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-05-23 11:26:15 -05:00
18 lines
695 B
C#
18 lines
695 B
C#
using UnityEditor;
|
|
using UnityEngine;
|
|
|
|
namespace VRM10.Samples.MToon10Showcase
|
|
{
|
|
[CustomPropertyDrawer(typeof(ShadingShiftShowcase.ShadingShiftEntry))]
|
|
public sealed class ShadingShiftEntryDrawer : PropertyDrawer
|
|
{
|
|
public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
|
|
{
|
|
EditorGUILayout.PropertyField(
|
|
property.FindPropertyRelative(nameof(ShadingShiftShowcase.ShadingShiftEntry.shadingShiftTexture)));
|
|
EditorGUILayout.Slider(
|
|
property.FindPropertyRelative(nameof(ShadingShiftShowcase.ShadingShiftEntry.shadingShiftTextureScale)),
|
|
-3f, 3f);
|
|
}
|
|
}
|
|
} |