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"

Animation does not play from start


Sometimes when we play an animation, it will not play from the start, it plays from where it stopped last time. I'm enclosing a picture of my animation node in my state machine. I have tried to manually reset the animation from c++ by calling GetMesh()->SetPosition(0.0f, false) but i get an error message saying the anim instance is currently in blueprint node.

How can I ensure the animation always plays from start? Is it a bug or am I doing something wrong?



Product Version: UE 4.12
more ▼

asked Jul 08 '16 at 02:49 PM in C++ Programming

avatar image

166 5 12 19

avatar image NymKappa Jul 08 '16 at 02:52 PM

I encounter this issue when I'm switching animations faster than the blending time.

Did you try to do GetMesh()->PlayAnimation(YourAnimation, 0); ?

avatar image TooManyCrashes Jul 08 '16 at 04:07 PM

Hi Joris, this actually fixed the problem. I wonder if there is a clean way of doing it without having to hardcode the animation in c++. This seems to be a bug in the animation UE4 system.

avatar image Cloudy McStrife Jul 08 '16 at 04:06 PM

Hey Crash

Did you try to call SetPosition After PlayAnimation ??

Cheers Cloudy

avatar image TooManyCrashes Jul 08 '16 at 04:10 PM

Hi Cloudy, PlayAnimation() properly rewinds the animation back to 0 if called from c++. I don't understand why the blueprint state machine can't do it.

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

0 answers: sort voted first
Be the first one to answer this question
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