diff options
Diffstat (limited to 'Assets/UI_Extension/Scripts/Animation/Tween/Editor/TweenAnimationInspector.cs')
-rw-r--r-- | Assets/UI_Extension/Scripts/Animation/Tween/Editor/TweenAnimationInspector.cs | 12 |
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 |