/// <summary> Starts playing the loop animation on the target RectTransform </summary> /// <param name="target"> Target RectTransform being animated </param> /// <param name="startPosition"> Start anchoredPosition3D for the target RectTransform</param> /// <param name="startRotation"> Start localRotation for the target RectTransform</param> public void Start(RectTransform target, Vector3 startPosition, Vector3 startRotation) { if (!Enabled) { return; } if (Animation == null) { return; } if (IsPlaying) { return; } UIAnimator.MoveLoop(target, Animation, startPosition); UIAnimator.RotateLoop(target, Animation, startRotation); UIAnimator.ScaleLoop(target, Animation); UIAnimator.FadeLoop(target, Animation); IsPlaying = true; }