导入leg插件,完成腿部动画

This commit is contained in:
2025-09-24 15:12:17 +08:00
parent 5087ff1cfe
commit 090e86c0ee
1087 changed files with 417484 additions and 30288 deletions

View File

@@ -0,0 +1,16 @@
using UnityEngine;
using UnityEditor;
[CustomPropertyDrawer(typeof(FPD_FixedCurveWindowAttribute))]
public class FPD_FixedCurveWindow : PropertyDrawer
{
public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
{
FPD_FixedCurveWindowAttribute att = attribute as FPD_FixedCurveWindowAttribute;
if (property.propertyType == SerializedPropertyType.AnimationCurve)
{
EditorGUI.CurveField(position, property, att.Color, new Rect(att.StartTime, att.StartValue, att.EndTime - att.StartTime , att.EndValue - att.StartValue ), label );
}
}
}