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
Comments (1)
-
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
- WebGL build dependencies are not refreshed until the Editor is restarted
- “Audio Random Container” allows adding unlimited number in “Audio Clips” numeric field, causing Editor to freeze
- In Deferred rendering path, mixed lights don't render when enabling "Use Rendering Layers" in the Decal renderer feature
- [Windows] Special characters in file names are sorted to the end of the alphabet in the Project window
- Information box icons are not contained within the information box bounds in Render Pipeline Converter window
Resolution Note:
Edge-case. Will not fix because of level of risk to fix.
Proposed workaround is to add stop time to AnimationClip.