コガネブログ

平日更新を目標に Unity や C#、Visual Studio、ReSharper などのゲーム開発アレコレを書いていきます

【Unity】DOTWEEN ► Max Tweens reached: capacity has automatically been increased from 200/50 to 200/125. Use DOTween.SetTweensCapacity to set it manually at startup

概要

DOTWEEN ► Max Tweens reached: 
capacity has automatically been increased from 200/50 to 200/125. 
Use DOTween.SetTweensCapacity to set it manually at startup

DOTween を使用していて上記の警告が出力された場合は

using DG.Tweening;
using UnityEngine;

public class Example : MonoBehaviour
{
    private void Start()
    {
        DOTween.SetTweensCapacity( 200, 125 );
    }
}

DOTween.SetTweensCapacity を呼び出すことで出力されなくなります