- Home /
Question by
benzsuankularb · Jan 05, 2017 at 06:06 PM ·
tweentweening
LeanTween, Tween canceled but still true when check isTweening.
Is it a bug or by designed?
if (LeanTween.isTweening (myTween.id)) {
myTween.setOnComplete (doSome);
LeanTween.cancel (myTween.id, true);
}
...
void doSome () {
if (LeanTween.isTweening (myTween.id))
Debug.Log ("shoud't print when tween canceled"); //This printed
}
Comment
Your answer
Follow this Question
Related Questions
Cannot tween camera to a nice smooth stop. 1 Answer
LeanTween reverse tween 1 Answer
DOTween transform.DORotate() weird behaviour? 0 Answers
Tweening is not consistent 0 Answers