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.