Max Tweens reached: capacity has automatically been increased from 500/312 to 1250/312. Use DOTween.SetTweensCapacity to set it manually at startup
UnityEngine.Debug:LogWarning(Object)
DG.Tweening.Core.Debugger:LogWarning(Object) (at 〜
該当のソースコード
C#
1voidHalfRotateBallL(){2 Sequence seq = DOTween.Sequence();3 seq.Append(4 trans.DORotate(5 new Vector3(0f,0f,60f),63.0f7)8);9 seq.Append(10 trans.DORotate(11 new Vector3(0f,0f,120f),123.0f13)14);15 trans.DORotate(16 new Vector3(0f,0f,-60f),171.0f18);19}
1using UnityEngine;2using System.Collections;3using DG.Tweening;45public class Sequences : MonoBehaviour
6{7 public Transform cube;8 public float duration =4;910 IEnumerator Start()11{12// Start after one second delay (to ignore Unity hiccups when activating Play mode in Editor)13 yield return new WaitForSeconds(1);1415// Create a new Sequence.16// We will set it so that the whole duration is 617 Sequence s = DOTween.Sequence();18// Add an horizontal relative move tween that will last the whole Sequence's duration19 s.Append(cube.DOMoveX(6, duration).SetRelative().SetEase(Ease.InOutQuad));20// Insert a rotation tween which will last half the duration21// and will loop forward and backward twice22 s.Insert(0, cube.DORotate(new Vector3(0,45,0), duration /2).SetEase(Ease.InQuad).SetLoops(2, LoopType.Yoyo));23// Add a color tween that will start at half the duration and last until the end24 s.Insert(duration /2, cube.GetComponent<Renderer>().material.DOColor(Color.yellow, duration /2));25// Set the whole Sequence to loop infinitely forward and backwards26 s.SetLoops(-1, LoopType.Yoyo);27}28}
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2019/05/19 01:41