Just ran into the following and wanted to check if it's intentional. The .OnPlay() callback doesn't seem to be called .OnRestart() of a Sequence.

It works when you do .Rewind() and .Play(), however.

Code: [Select]
DOTween v1.0.750
DOTween Pro v0.9.290

Cheers!
Peter
« Last Edit: August 08, 2015, 02:23:25 PM by editkid »

*

Daniele

  • Dr. Admin, I presume
  • *****
  • 378
    • View Profile
    • Demigiant
Re: .Restart() doesn't trigger .OnPlay() on Sequence - intentional?
« Reply #1 on: August 08, 2015, 11:11:55 PM »
Hi,

Ouch, you found a bug. The update I'm attaching fixes it. Consider that it will now correctly call OnPlay only if you call Restart after the tween has completed (meaning the tween was in a paused state).

Cheers!
Daniele