From 3bf862ea76d349c2aec1f71656dd6f41a82650e0 Mon Sep 17 00:00:00 2001 From: chai Date: Thu, 27 May 2021 19:42:52 +0800 Subject: *tween --- .../Animation/Tween/Editor/TweenAnimationInspector.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'Assets/UI_Extension/Scripts/Animation/Tween/Editor/TweenAnimationInspector.cs') 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 -- cgit v1.1-26-g67d0