public static void StopAllPreviews() { _TmpKeys.Clear(); foreach (KeyValuePair <DOTweenAnimation, TweenInfo> kvp in _AnimationToTween) { _TmpKeys.Add(kvp.Key); } StopPreview(_TmpKeys); _TmpKeys.Clear(); _AnimationToTween.Clear(); DOTweenEditorPreview.Stop(); EditorApplication.playmodeStateChanged -= StopAllPreviews; InternalEditorUtility.RepaintAllViews(); }
public static void StopAllPreviews() { _TmpKeys.Clear(); foreach (KeyValuePair <DOTweenAnimation, TweenInfo> kvp in _AnimationToTween) { _TmpKeys.Add(kvp.Key); } StopPreview(_TmpKeys); _TmpKeys.Clear(); _AnimationToTween.Clear(); DOTweenEditorPreview.Stop(); #if UNITY_4_3 || UNITY_4_4 || UNITY_4_5 || UNITY_4_6 || UNITY_5 UnityEditor.EditorApplication.playmodeStateChanged -= StopAllPreviews; #else UnityEditor.EditorApplication.playModeStateChanged -= StopAllPreviews; #endif InternalEditorUtility.RepaintAllViews(); }