Demigiant Forum
Home
Help
Search
Login
Register
.Restart() doesn't trigger .OnPlay() on Sequence - intentional?
Demigiant Forum
Unity Assets
DOTween & DOTween Pro
.Restart() doesn't trigger .OnPlay() on Sequence - intentional?
« previous
next »
Print
Pages: [
1
]
editkid
4
.Restart() doesn't trigger .OnPlay() on Sequence - intentional?
«
on:
August 08, 2015, 02:21:50 PM »
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
»
Logged
Daniele
Dr. Admin, I presume
378
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
Logged
DEMIGIANT
Print
Pages: [
1
]
« previous
next »