Пример #1
0
        public void SetAnimationFrameRate(float frameRate, bool allFrames)
        {
            if (CurrentAnimation == null)
            {
                return;
            }

            if (allFrames)
            {
                CurrentAnimation.FrameRate = frameRate;
            }
            else
            {
                foreach (var frame in SelectedFrames)
                {
                    CurrentAnimation.SetFrameDuration(frame.Num, 1f / frameRate);
                }
            }


            CurrentAnimation.Reset();
        }