Code Monkey home page Code Monkey logo

Comments (11)

gcoope avatar gcoope commented on August 20, 2024

I managed to reach the expected outcome by replacing the OnComplete with an AppendCallback on the sequence. I haven't tested if this works if you appended another tween to the end of the AppendCallback.

int dummy = 0;
float duration1 = 0.001f;
float duration2 = 0.0010001f;
bool isTweenCompleted = false;
Sequence itemSequence = DOTween.Sequence()
    .AppendInterval(duration1)
        .Append(DOTween.To(() => 0, i => dummy = i, 20, duration2))
            .AppendCallback(()=> {
                Debug.Log("OnComplete tween");
                isTweenCompleted = true;
            })
        .OnComplete(() => { Debug.Log("OnComplete sequence, " + (isTweenCompleted ? "ok" : "BUG")); });

from dotween.

alryazanov avatar alryazanov commented on August 20, 2024

+1
Recently I received an unexpected behavior that some OnComplete events in Sequence not called

from dotween.

mysl1212 avatar mysl1212 commented on August 20, 2024

any fix or solutions? also have this problem:when tweens in a sequence have a very short duration,the last tween's oncomplete won't be called

from dotween.

Demigiant avatar Demigiant commented on August 20, 2024

Hey, can you try this last version 1.1.140 and let me know? It should've fixed this issue.

from dotween.

mysl1212 avatar mysl1212 commented on August 20, 2024

yes,it works,thank you~

from dotween.

mysl1212 avatar mysl1212 commented on August 20, 2024

but i put the latest source code to my project ,the problem is still there :(
i prefer source code to dlls

from dotween.

Demigiant avatar Demigiant commented on August 20, 2024

That is weird. You tried both the DLL and the source in the same project, and only the source is working? I did update the source too, as usual.

from dotween.

rubit0 avatar rubit0 commented on August 20, 2024

I bumped today into the same problem, wasted 2 hours till I found out and fixed it by splitting the Sequence into several Tweeners and handling code flow via a simple bool.

I hope this will be fixed in the future since sequences are wonderfully elegant!

from dotween.

Demigiant avatar Demigiant commented on August 20, 2024

Hey Ruben! :)
Can you try to 1.1.140 version I posted a few posts above yours? That should've fixed the issue.

from dotween.

rubit0 avatar rubit0 commented on August 20, 2024

That 1.1.140 Version that was posted before didn't worked for me, well at least on my current project but I will investigate in it on a fresh project. Maybe my current project was simply messed up or something.
Thanks!

from dotween.

Demigiant avatar Demigiant commented on August 20, 2024

Thanks! Let me know. I added a fail-safe routine, and on all my test projects it works.

from dotween.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.