1
0
mirror of https://github.com/Cardidi/dotween-upm-fork.git synced 2025-12-21 01:36:05 +08:00
2020-01-17 00:11:15 +09:00

29 lines
1.3 KiB
C#

// Author: Daniele Giardini - http://www.demigiant.com
// Created: 2014/08/22 11:43
//
// License Copyright (c) Daniele Giardini.
// This work is subject to the terms at http://dotween.demigiant.com/license.php
namespace DG.Tweening
{
/// <summary>
/// Used to allow method chaining with DOTween.Init
/// </summary>
public interface IDOTweenInit
{
/// <summary>
/// Directly sets the current max capacity of Tweeners and Sequences
/// (meaning how many Tweeners and Sequences can be running at the same time),
/// so that DOTween doesn't need to automatically increase them in case the max is reached
/// (which might lead to hiccups when that happens).
/// Sequences capacity must be less or equal to Tweeners capacity
/// (if you pass a low Tweener capacity it will be automatically increased to match the Sequence's).
/// Beware: use this method only when there are no tweens running.
/// </summary>
/// <param name="tweenersCapacity">Max Tweeners capacity.
/// Default: 200</param>
/// <param name="sequencesCapacity">Max Sequences capacity.
/// Default: 50</param>
IDOTweenInit SetCapacity(int tweenersCapacity, int sequencesCapacity);
}
}