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
- Rigidbody2D.Slide API does not have the needed configuration when creating a 2D Top-Down character controller
- Opening reference for "Playables"component redirects to a missing page
- Sprite Renderer image is changed when switching Mask Interaction and changing Sprite to a shared Sprite
- An unsigned integer is not compared with an integer correctly in player when using IL2CPP backend
- Graphical artifacts are being rendered in Scenes that are loaded during run-time when GPU Resident Drawer is turned on
Resolution Note:
Edge-case. Will not fix because of level of risk to fix.
Proposed workaround is to add stop time to AnimationClip.