diff --git a/Scripts/UI/Component/Series.cs b/Scripts/UI/Component/Series.cs index c6a72c36..6f9f8343 100644 --- a/Scripts/UI/Component/Series.cs +++ b/Scripts/UI/Component/Series.cs @@ -795,6 +795,17 @@ namespace XCharts } } + /// + /// 启用或取消初始动画 + /// + public void AnimationEnable(bool flag) + { + foreach (var serie in m_Series) + { + serie.animation.enable = flag; + } + } + /// /// 开始初始动画 /// diff --git a/Scripts/UI/Internal/BaseChart_API.cs b/Scripts/UI/Internal/BaseChart_API.cs index a129170e..039b7ff7 100644 --- a/Scripts/UI/Internal/BaseChart_API.cs +++ b/Scripts/UI/Internal/BaseChart_API.cs @@ -424,7 +424,18 @@ namespace XCharts } /// - /// 开始初始动画 + /// Whether series animation enabel. + /// 启用或取消起始动画。 + /// + /// + public void AnimationEnable(bool flag) + { + m_Series.AnimationEnable(flag); + } + + /// + /// Start play animation. + /// 开始初始动画。 /// public void AnimationStart() { @@ -432,7 +443,8 @@ namespace XCharts } /// - /// 停止初始化动画 + /// Stop play animation. + /// 停止初始化动画。 /// public void AnimationStop() {