UniVRM/Assets/VRM10_Samples/MToon10Showcase/Editor/CustomEditor/UVAnimationEntryDrawer.cs
2025-04-09 16:31:41 +09:00

24 lines
1.0 KiB
C#

using UnityEditor;
using UnityEngine;
namespace VRM10.Samples.MToon10Showcase
{
[CustomPropertyDrawer(typeof(UVAnimationShowcase.UVAnimationEntry))]
public class UVAnimationEntryDrawer : PropertyDrawer
{
public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
{
EditorGUILayout.PropertyField(
property.FindPropertyRelative(nameof(UVAnimationShowcase.UVAnimationEntry.uvAnimationMaskTexture)));
EditorGUILayout.PropertyField(
property.FindPropertyRelative(
nameof(UVAnimationShowcase.UVAnimationEntry.uvAnimationScrollXSpeedFactor)));
EditorGUILayout.PropertyField(
property.FindPropertyRelative(
nameof(UVAnimationShowcase.UVAnimationEntry.uvAnimationScrollYSpeedFactor)));
EditorGUILayout.PropertyField(
property.FindPropertyRelative(
nameof(UVAnimationShowcase.UVAnimationEntry.uvAnimationRotationSpeedFactor)));
}
}
}