summaryrefslogtreecommitdiff
path: root/Assets/UI_Extension/Scripts/Animation/Tween/Editor/TweenAnimationInspector.cs
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-05-27 19:42:52 +0800
committerchai <chaifix@163.com>2021-05-27 19:42:52 +0800
commit3bf862ea76d349c2aec1f71656dd6f41a82650e0 (patch)
tree8962c7b7729c8e7e865a6ef3161f31b2236869ed /Assets/UI_Extension/Scripts/Animation/Tween/Editor/TweenAnimationInspector.cs
parent654d95efad67a00cb4cffc300419092e9a5093e5 (diff)
*tween
Diffstat (limited to 'Assets/UI_Extension/Scripts/Animation/Tween/Editor/TweenAnimationInspector.cs')
-rw-r--r--Assets/UI_Extension/Scripts/Animation/Tween/Editor/TweenAnimationInspector.cs12
1 files changed, 12 insertions, 0 deletions
diff --git a/Assets/UI_Extension/Scripts/Animation/Tween/Editor/TweenAnimationInspector.cs b/Assets/UI_Extension/Scripts/Animation/Tween/Editor/TweenAnimationInspector.cs
index e79c90d..c4267b9 100644
--- a/Assets/UI_Extension/Scripts/Animation/Tween/Editor/TweenAnimationInspector.cs
+++ b/Assets/UI_Extension/Scripts/Animation/Tween/Editor/TweenAnimationInspector.cs
@@ -88,6 +88,10 @@ namespace TweenAnimation
animation.playbackLimit = animation.playbackLimit > limit ? (int)Mathf.Floor(limit) : (int)Mathf.Ceil(limit);
}
+ // 时间间隔
+ float duration = ui.GUIFloat("Duration", animation.duration, "f2");
+ animation.duration = Mathf.Clamp(duration, 0, float.MaxValue);
+
// 事件触发方向
animation.eventTriggeredDirection = (TweenAnimation.EventTriggeredDirection)ui.GUIEnumMask("Event Direction", animation.eventTriggeredDirection);
}
@@ -162,6 +166,8 @@ namespace TweenAnimation
void AnimaitonModule(TweenModule module, bool isLast)
{
+ if (module == null)
+ return;
string name = module.name;
string description = module.description;
bool enabled = module.enabled;
@@ -243,5 +249,11 @@ namespace TweenAnimation
GUI.Label(bgRect, "", styles.bgSmall);
}
+ // 绘制时间轴
+ void DrawRuler()
+ {
+
+ }
+
}
} \ No newline at end of file