public static void SetCurrentFrame(int frame, float time) { if (AnimationWindow == null) { return; } CurrentTimeField.SetValue(GetState(), time); AnimationWindow.Repaint(); }
public static void SetCurrentFrame(int frame, float time) { if (AnimationWindow == null) { return; } object state = GetState(); #if UNITY_5_0 TimeField.SetValue(state, time); FrameField.SetValue(state, frame); PreviewFrame.Invoke(AnimationWindow, new object[] { frame }); #else CurrentTimeField.SetValue(state, time); #endif _animationWindow.Repaint(); }