Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - keht

Pages: [1]
1
DOTween & DOTween Pro / Sequence loops bug
« on: October 08, 2015, 12:35:54 PM »
Hello!

[Unity 5.2.0, DOTween 1.0.830]

I found a bug with sequence loops. You can reproduce it using this sample.

Create scene with a button, add code and OnClick delegate:

Code: [Select]
using UnityEngine;
using DG.Tweening;
using Debug = UnityEngine.Debug;

public class Sandbox : MonoBehaviour
{
    private int m_counter;

    public void OnClick()
    {
        Debug.Log("Sandbox OnClick");
        m_counter = 0;

        DOTween.Sequence()
            .AppendCallback(() =>
            {
                Debug.Log("Iteration: " + ++m_counter);
            })
            .AppendInterval(0.5f)
            .SetLoops(5)
            ;

    }
}

Run it, tap button and see output in the log:
Sandbox OnClick
Iteration: 1
Iteration: 2
Iteration: 3
Iteration: 4
Iteration: 5

All works as expected now. But set 100 in Project Settings -> Time -> Time Scale and run scene again:
Sandbox OnClick
Iteration: 1
Iteration: 2

Some iterations are disappeared!

You can get this behavior not only when playing with high time scale, but also when you got low fps peak in the real game. 

Could you please provide fix?

2
DOTween & DOTween Pro / Two [DoTween] objects at the same time
« on: September 28, 2015, 11:13:06 PM »
Hello,

Sometimes I getting two [DoTween] objects in my scene:


Double [DoTween] leads to double animation speed. Unfortunately, I can't provide any steps to reproduce, I only know that it takes place on the scene change.

Could you please assist?

3
Hello! I use 1.0.665 version and got exception. I use default settings for capacity.

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

IndexOutOfRangeException: Array index is out of range.
(wrapper stelemref) object:stelemref (object,intptr,object)
DG.Tweening.Core.TweenManager.AddActiveTween (DG.Tweening.Tween t) (at D:/DG/_Develop/__UNITY3_CLASSES/_Holoville/__DOTween/_DOTween.Assembly/DOTween/Core/TweenManager.cs:734)
DG.Tweening.Core.TweenManager.GetTweener[Vector3,Vector3,VectorOptions] () (at D:/DG/_Develop/__UNITY3_CLASSES/_Holoville/__DOTween/_DOTween.Assembly/DOTween/Core/TweenManager.cs:97)
DG.Tweening.DOTween.ApplyTo[Vector3,Vector3,VectorOptions] (DG.Tweening.Core.DOGetter`1 getter, DG.Tweening.Core.DOSetter`1 setter, Vector3 endValue, Single duration, DG.Tweening.Plugins.Core.ABSTweenPlugin`3 plugin) (at D:/DG/_Develop/__UNITY3_CLASSES/_Holoville/__DOTween/_DOTween.Assembly/DOTween/DOTween.cs:881)
DG.Tweening.DOTween.To (DG.Tweening.Core.DOGetter`1 getter, DG.Tweening.Core.DOSetter`1 setter, Vector3 endValue, Single duration) (at D:/DG/_Develop/__UNITY3_CLASSES/_Holoville/__DOTween/_DOTween.Assembly/DOTween/DOTween.cs:327)
DG.Tweening.ShortcutExtensions.DOMove (UnityEngine.Transform target, Vector3 endValue, Single duration, Boolean snapping) (at D:/DG/_Develop/__UNITY3_CLASSES/_Holoville/__DOTween/_DOTween.Assembly/DOTween/ShortcutExtensions.cs:370)

IndexOutOfRangeException: Array index is out of range.
DG.Tweening.Core.TweenManager.Update (UpdateType updateType, Single deltaTime, Single independentTime) (at D:/DG/_Develop/__UNITY3_CLASSES/_Holoville/__DOTween/_DOTween.Assembly/DOTween/Core/TweenManager.cs:335)
DG.Tweening.Core.DOTweenComponent.Update () (at D:/DG/_Develop/__UNITY3_CLASSES/_Holoville/__DOTween/_DOTween.Assembly/DOTween/Core/DOTweenComponent.cs:50)

4
DOTween & DOTween Pro / Troubles with sequences
« on: May 11, 2015, 11:24:24 PM »
Hello! I have some troubles with sequences.

First one:
        DOTween.Sequence()
            .SetId(123)
            .PrependInterval(3)
            .AppendCallback(() =>{Debug.Log("First callback!");})
            .PrependInterval(3)
            .AppendCallback(() =>{Debug.Log("Second callback!");});


Both callbacks will called at the same time. If I change AppenCallback to OnComplete, it does not works too. Is there any way to use multiply callbacks inside sequence?

Second one:
        DOTween.Sequence()
            .SetId(123)
            .PrependInterval(3)
            .OnComplete(() =>{Debug.Log("First callback!");})

        DOTween.Kill(123, true);


Callback does not called here. Why?

Pages: [1]