static void AddAnimationToGlobalPreview(DOTweenAnimation src) { if (!src.isActive) { return; } if (_previewOnlyIfSetToAutoPlay && !src.autoPlay) { return; } Tween t = src.CreateEditorPreview(); _AnimationToTween.Add(src, new TweenInfo(src, t, src.isFrom)); DOTweenEditorPreview.PrepareTweenForPreview(t); }
static void AddAnimationToGlobalPreview(DOTweenAnimation src) { if (!src.isActive) { return; // Ignore sources whose tweens have been set to inactive } if (_previewOnlyIfSetToAutoPlay && !src.autoPlay) { return; } Tween t = src.CreateEditorPreview(); _AnimationToTween.Add(src, new TweenInfo(src, t, src.isFrom)); // Tween setup DOTweenEditorPreview.PrepareTweenForPreview(t); }