Search Issue Tracker
Won't Fix
Votes
1
Found in
2017.4.0a1
2018.2.18f1
2018.3.0a1
2019.1.0a1
2019.2.0a1
Issue ID
1110125
Regression
No
AnimationEvent isn't fired in an animationClip without keyframes when the AnimationEvent is added using a script
How to reproduce:
1. Open the attached "case_1110125-AnimationEventNoKeyframes" project
2. Open scene "SampleScene"
3. Enter Play mode, there should be console output from the animation event calling PrintEvent()
4. Open the "Test" animator controller
5. Select the "TestState" state and set its motion to be the "NoKeyframes" animation clip
6. Enter Play mode
Expected results: The animation event should still call PrintEvent() and produce console output
Actual results: The function isn't called and the console is empty
Reproducible with: 2017.4.23f1, 2018.3.8f1, 2019.1.0b6, 2019.2.0a8
-
mrkotfw
Sep 10, 2020 03:26
I'm also experiencing this. Here are two things that I noticed.
1.) m_stopTime must be greater than the animation event timestamp.
2.) The animation event must be either parameterless or use the string parameter.The workaround is that I just pad the stop time with one (1/frameRate).
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Fixing Message Loss in UMPE During Domain Reload
- The Editor freezes when ScheduleReadOnly of IJobParallelForTransform with dependency is used
- Text is truncated in the Inspector when the display scale is set to 150%
- CancellationTokenSource(<timeout>) has incorrect cancellation status when used in WebGL Player
- VFX property value names are cut off when properties with 'Arc' are viewed in the VFX Blackboard
Resolution Note:
Edge-case. Will not fix because of level of risk to fix.
Proposed workaround is to add stop time to AnimationClip.