mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-05-23 11:26:15 -05:00
16 lines
557 B
C#
16 lines
557 B
C#
using UnityEditor;
|
|
using UnityEngine;
|
|
|
|
namespace VRM10.Samples.MToon10Showcase
|
|
{
|
|
[CustomPropertyDrawer(typeof(RenderQueueOffsetShowcase.RenderQueueOffsetEntry))]
|
|
public sealed class RenderQueueOffsetEntryDrawer : PropertyDrawer
|
|
{
|
|
public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
|
|
{
|
|
EditorGUILayout.PropertyField(
|
|
property.FindPropertyRelative(
|
|
nameof(RenderQueueOffsetShowcase.RenderQueueOffsetEntry.renderQueueOffset)));
|
|
}
|
|
}
|
|
} |