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
- Some UXML Template Asset foldouts appear enabled when all fields inside are disabled
- URP Terrain Demo crash on burst_signal_handler after Generating lighting
- Project window button icons are poorly visible and their shades differ in Light theme
- GC.Alloc called by HDRenderPipeline.LensFlareMergeOcclusionDataDrivenPass() when playing the default HDRP Sample Template project
- Automatic LOD fails and SRP Batcher incompatibility occurs when using spline-based quad-topology meshes
Resolution Note:
Edge-case. Will not fix because of level of risk to fix.
Proposed workaround is to add stop time to AnimationClip.