x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Why does Montage_Pause() stop on the next frame of the animation instead of the current frame

Such as: In current frame, an animation playing at position 0.50000 and I call Montage_Pause() from here, but the animation does not stop at current frame, it will continue to play a frame and stop at position 0.53333 How do I stop the animation at the current frame ?

Product Version: UE 4.21
Tags:
more ▼

asked Dec 21 '18 at 05:29 AM in C++ Programming

avatar image

bowar
56 2 4 6

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

You can manually set the animation position if you need that much control. I use this function to exactly interp animations over time:

 /**
 * Set the montage animation position as a percentage from 0-1.
 * Montage will snap to position adjusted for length of the montage in seconds.
 */
 void UInteractiveSkeletalMesh::SetMontageAnimationPosition(float position)
 {
     if (_animationInstance )
     {
         if (_montageInstance)
         {
             _montageInstance->SetPosition(_montageLength * position);
         }
     }
 }
more ▼

answered Dec 21 '18 at 11:28 PM

avatar image

Shmoopy1701
26 1 5 4

avatar image bowar Dec 23 '18 at 01:09 PM

I don't know when I'm going to pause it, if I'm going to pause it and then specify it in this method, the animation will play to the next frame and then jump back to the frame I want, which is obviously an unacceptable performance

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question