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
- No character limit when renaming Profile in Addressables Profile window, allowing excessively long names
- Blurry, low quality Active Profile icon used in Addressables Profiles window
- Project browser search area changes when maximing Game View
- Tree Asset Preview window is not updated after assigning a new Material
- Unapplied changes on the "MainPanel" GameObject in the "BlobShadow" of URP Samples
Resolution Note:
Edge-case. Will not fix because of level of risk to fix.
Proposed workaround is to add stop time to AnimationClip.