Giter Club home page Giter Club logo

Comments (7)

zszen avatar zszen commented on August 30, 2024 1

DOTween.Kill(target) can't kill sequence with this target.

from dotween.

Demigiant avatar Demigiant commented on August 30, 2024 1

Ahoy! Yes, pausing/killing a tween will also pause/kill all callbacks

from dotween.

Demigiant avatar Demigiant commented on August 30, 2024

Hello,

Killing a Sequence renders it immediately inactive, so callbacks won't be called anymore.

I even replicated your code to be sure nothing weird was happening, and everything is killed correctly here. So I suppose you have some other similar object where the OnDestroy is not called, or maybe you didn't store the sequence variable but created the Sequence anonimously, so the Kill is not happening?

I'm closing this for now, since I'm pretty sure it must be a script error on your side, but let me know.

Cheers,
Daniele

from dotween.

ehudros avatar ehudros commented on August 30, 2024

Thanks for the quick reply, I'll take a closer look at what's going here and reopen this if I find anything that's indeed Dotween related.

On a related note, is there any way to see the currently running tweens like Hotween manager used to display them? (meaning the objects themselves and not just an "Active tweens" counter)

from dotween.

Demigiant avatar Demigiant commented on August 30, 2024

Sorry but no: there is no way to see the actual objects. DOTween has a different logic than HOTween, and it knows absolutely nothing of the object it's tweening: it keeps track only of the properties.

from dotween.

Demigiant avatar Demigiant commented on August 30, 2024

@zszen Not sure what you mean :P

from dotween.

benjamin-asdf avatar benjamin-asdf commented on August 30, 2024

Hi,

Am I assuming correctly that this is also the case for pausing tweens? Eg. we pause kill in an OnDisable function, is it save to assume there are no callbacks from the next frame onwards?

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.