|
when i try to dynamically add an AnimationEvent to the end of a AnimationClip, everything works fine in the editor. on the iphone (3gs + 4) everything went fine as long as the rest of the scene was empty, but the more objects i added/more rendering needed, the event started to drop/not been called more and more and with the full scene, it nearly never got called. i did a dirty workaround now, but still wondering if AnimationEvents under stress will not get called reliably. or did i just make a stupid mistake, as i'm new to unity? thanks a lot for any hints! here's the (simplified) code not working properly:
(comments are locked)
|
|
There used to be a bug which caused animation not to be sampled at last frame. It might be that the same problem causes the event not to be executed. I fixed the sampling bug, so it might be that the event bug is fixed too. I fixed a bunch of other event bugs too... You can try setting wrapMode to ClampForever and see if that helps you. hey paulius. tnx for your answer. i will check this asap.
Dec 05 '10 at 04:52 PM
nada
i finally tried with clampforever for the update and it did the trick. not heavily tested, but worked on all our intern devices. thanks for the hint!
Dec 17 '10 at 10:43 AM
nada
(comments are locked)
|
