# PreUpdateAnimation event?

**URL:** <https://forums.unrealengine.com/t/preupdateanimation-event/421258>\
**Category:** Mobile\
**Tags:** unreal-engine, custom-nodes, question\
**Created:** [March 29, 2018, 7:53pm UTC](https://forums.unrealengine.com/t/preupdateanimation-event/421258 "2018-03-29T19:53:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![maslenok](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/maslenok/32/267079_2.png) [@maslenok](https://forums.unrealengine.com/u/maslenok)\
**Post date:** [March 29, 2018, 7:53pm UTC](https://forums.unrealengine.com/t/preupdateanimation-event/421258/1 "2018-03-29T19:53:55Z")

</div>

I have a stupid question. All my animation in AnimGraph converted to “one frame animation” and driven by variables from AnimBP.  
Desred position for each anim calculated only if the animation have non zero weight in AnimState. When animation becomes non zero weight, desired anim position value taken from the previous frame, but this value is wrong because is not caclulated if anim have zero weight (this value from last non zero weight frame). I think a additional events for anim bluerpint (like PreUpdateAnimation [http://api.unrealengine.com/INT/API/Runtime/Engine/Animation/UAnimInstance/PreUpdateAnimation/index.html](http://api.unrealengine.com/INT/API/Runtime/Engine/Animation/UAnimInstance/PreUpdateAnimation/index.html)) can help in this situation. How create this function in visual studio? If we know other variant to solve this problem, say please. Sorry for my English!
