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.


Messages - 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
DOTween & DOTween Pro / Re: Troubles with sequences
« on: May 12, 2015, 08:37:46 PM »
I Am understand the flow finally. Thanks for the explanations!

4
Please find project attached.

5
DOTween & DOTween Pro / Re: Troubles with sequences
« on: May 12, 2015, 01:43:56 PM »
Thanks for sharing! I tried the new version and my case from the first post works fine.

But this code does not works as expected:
Code: [Select]
        DOTween.Sequence()
            .SetId(123)
            .AppendInterval(3)
            .AppendCallback(() => { Debug.Log("First callback!"); })
            .AppendInterval(3)
            .AppendCallback(() => { Debug.Log("Second callback!"); })
            .OnComplete(() => { Debug.Log("Third callback!"); })
            ;

        DOTween.Kill(123, true);

After execution I see only "Third callback!" log entry.

6
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)

7
DOTween & DOTween Pro / Re: Troubles with sequences
« on: May 12, 2015, 10:14:56 AM »
Quote
First one, you are using PrependInterval, which adds an interval at the beginning of a Sequence, instead of AppendInterval
My bad. Sorry!

Quote
Are you using the latest version of DOTween (1.0.665)?
Yes.

8
DOTween & DOTween Pro / Re: DOTween feature requests
« on: May 12, 2015, 09:54:11 AM »
>
Quote
I can't test it now to be sure, but zero duration tweens are indeed supported. Are you using the latest DOTween version (1.0.665)?
I test it again and found that exception throws only when I have zero in the sequenced tween. Single tween works fine. (I use 1.0.665.)

>
Quote
About JumpBy, that's not as useful in a 3D environment, since you never know on which axis you want to jump.
But it helpful for 2d games... Anyway, thanks for tip about yoyo. It save my time!

9
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?

10
DOTween & DOTween Pro / Re: DOTween feature requests
« on: May 11, 2015, 11:24:00 PM »
Will nice to have:
1. Zero as tween duration. It can be used to instant value changing, but currently causes exception (
2. DOJump tween like cocos2d-x JumpBy action.

Pages: [1]