Open GoogleCodeExporter opened 8 years ago
Hi Jeramie,
sorry if I'm late to answer, but I'm in kind of a rush these days.
What you mean with "orphan" the Sequences? You're creating a single Sequence
with other nested Sequences/Tweeners, and are doing something on the nested
ones? Or you just mean you're killing the main one?
Original comment by daniele....@gmail.com
on 1 Apr 2014 at 10:37
Basically what seems to be happening is the HOTween.tweens array has a
reference to something that is not castable as a Sequence. This could happen,
as it seems to for us, if you're manually removing child transforms from a game
object. Either way, for whatever reason, HOTween's tweens array has something
in it that will throw a null reference exception if you attempt to cast it as a
(Sequence) and use .GetTweenersByTarget.
By "orphan" here, I'm referring to iterating over a gameobject's child
transforms and setting their parent transform to null.
Regardless, In your code you first check to see if tweener != null before
trying to add it to the list. You might want want to do the same type of null
check when you try to cast it as a sequence to use .GetTweenersByTarget.
Original comment by jeramie....@gmail.com
on 1 Apr 2014 at 4:58
Original issue reported on code.google.com by
jeramie....@gmail.com
on 26 Mar 2014 at 6:55