I am utilizing a really primary animation to create a transition, which includes disabling a recreation object on the final keyframe.
Objective:
- He ChangeRound The animation lasts roughly 1 second. Prompts the UI picture originally and deactivates it on the finish of the animation.
Downside:
- The animation is enjoying, however the recreation object is just not disabled within the final keyframe. Please be aware that every one my states have "Write default values" set to false.
What I’ve achieved to repair it:
- If I transfer the keyframe it disables the sport object one body earlier thanthen the thing is deactivated appropriately. Be aware that within the animation clip picture under, I additionally animate different properties, so transferring the disabled keyframe 1 body earlier doesn’t shorten the animation (i.e. the picture under is a simplification).
Hierarchy:
- He HUDScripter accommodates the Animator element.
- I am simply attempting to allow/disable the Drafts object of the sport.
Animation:
- Easy animation clip. Works superb when previewing
- Allows the sport object originally, then disables it on the finish (once more, there are literally different animated properties, not simply disabling the sport object, so transferring the disabled keyframe one body earlier does not shorten the animation by 1 body).

I am utterly baffled that this is not working. I’ve achieved plenty of primary animations earlier than and this looks like such a easy function that it utterly refuses to work. I suppose I am lacking one thing very Easy however I’ve spent hours on this with no answer. Any assist can be appreciated.
Truly, I wish to know if there’s something completely different to transferring the disable keyframe 1 earlier than and likewise if this can be a dependable workaround. I am pondering of utilizing StateMachineBehaviour to detect if we’re exiting an animator’s finite state machine state, however utilizing the animation clip to allow/disable recreation objects was very handy… How about we put an animation occasion on the final keyframe? However what I am most serious about is why the primary method does not work.
Be aware: this query was tailored from right here
