Play Anim Blueprint animation in editor viewport (not PIE)
Hi! I am curious if there a way to update anim blueprint graph animation in editor viewport? Maybe using AnimInstance or AnimInstanceProxy.
I found a way to update animation in viewport using Construction Script. If you set some variables using CS and send them to an animation blueprint then by evaluating CS you can update your anim instance. Like this:
But there is a problem. Every evaluation cycle in CS creates a new AnimInstance as well as other blueprint components:
I am afraid that this solution is not optimized and it creates a lot of trash in memory.
I found some functions like UAnimInstance::EvaluateAnimation() but they are all private or protected.
Can somebody help me?
asked Oct 19 '16 at 08:45 AM in C++ Programming
I think that's heavily protected to be called in editor. You're correct that the construction script recreates anim instance.
Unfortunately I don't know if there is any good way to fix this from blueprint. In native, whenever we want to update animation, we run specific sets of code to refresh animation. This is manual process so that we can avoid updating it in editor all the time. Try this if you want, but this will refresh whenever called.
For any other future souls landing here: you can enable Skeletal Mesh → Update Animation in Editor on
answered Jan 22 '19 at 11:31 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here