Only able to play a small portion of attack animation in-game

Okay, so I have a problem where an animation for an attack (when you press left mouse button) only plays a small portion of the animation. I created a custom animation in sequencer, exported (baked) it to a folder, created a montage from it, and created a script that plays the animation when the player pressed the left mouse button. I did all this by watching YouTube tutorials. And it worked, at first. The whole animation played, in both the sequencer, animation sequence window, montage window, and in game. But the animation was too long, so I created a shorter version. That’s when the whole animation was no longer playing in the game, only a very small portion of it. The whole animation only plays elsewhere, but not in-game.

I went to the montage window and noticed something strange. So, after clicking on the green animation on the timeline (turns blue after clicking it), I looked at the Details panel on the right. This is where the problem is. The Anim End Time is set to 0.2 frames even though the animation is 6 frames long. I tried to increase the number from 0.2 to 6, but the number can’t be increased, only decreased. So, this explains why it only plays a small portion of the animation in-game, but it doesn’t explain WHY it’s set to 0.2. I tried creating a longer attack animation as a test, I made it 20 frames, and then in the Details panel, the Anim End Time was set to 0.66667. So, it’s like whatever length I make the animation, only a percentage is playable in-game and can’t be changed. So strange! And lastly, I noticed that the little preview window of the animation in the Details plays the whole animation, but I looked under it and there is a tab called Montage and under that it says Anim Segment, and I click the little reset arrow to the right, and suddenly, the little preview window only plays the same small portion of the animation again. The only way to get the preview window to play the whole animation again is to reselect the animation in the timeline.

This is a very strange issue that makes no sense, and there is no documentation on this issue, nor on Anim End Time, nor on Anim Segment.

Can someone please help me? Any help is greatly appreciated! I have provided screenshots showing what I’m talking about.


Okay, I figured it out. But now I have a new problem, kinda. So, it turns out, the 0.2 is actually the decimal in seconds of the 6 frame animation I made, because 6 is 0.2 of 30 frames a second. I then realized that the animation of the attack is too fast for the computer to animate in-game, and that’s why it appears to not be showing the full animation, the computer can’t keep up!

But, why is that? I should be able to see a punch in-game if I can see it in the animation window. Is there a setting I need to adjust to get a better performance? Is my animation too fast? Is 6 frames unrealistically fast for a punch from the idle position?

Hi again… I decided to just make my animation slower by increasing the frames it uses… I had originally set its display rate to 60 fps but cut the animation down to 18 frames.
But now I have expanded the animation to use the full 60 frames as I think the skewed fps / actual frames had something to do with the animation cancelling.
This however had made the animation really slow looking, so I decided to increase the rate scale to 2.5 in the animation sequence to make it appear the proper speed.
This seems to have solved my problem and I hope it does for you too if you are still looking for a solution.

Hello, I am having the same problem and also have no idea how to solve it.
I can see that this post is almost a year old so I am hoping that maybe you would have found a solution?