# How to create thread safe nodes and functions in AnimBP

**URL:** <https://forums.unrealengine.com/t/how-to-create-thread-safe-nodes-and-functions-in-animbp/388746>\
**Category:** Character & Animation\
**Tags:** multithreading, unreal-engine, question\
**Created:** [March 23, 2017, 8:43am UTC](https://forums.unrealengine.com/t/how-to-create-thread-safe-nodes-and-functions-in-animbp/388746 "2017-03-23T08:43:48Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![cridia](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/cridia/32/772487_2.png) [@cridia](https://forums.unrealengine.com/u/cridia)\
**Post date:** [March 23, 2017, 8:43am UTC](https://forums.unrealengine.com/t/how-to-create-thread-safe-nodes-and-functions-in-animbp/388746/1 "2017-03-23T08:43:48Z")

</div>

Since I have updated to 4.15, my animation blueprint gives me warnings on pure functions from my AnimInstance class, custom anim node implementations and various functions within the animation blueprint. Since I am using a lot of these to drive the animation, the warnings of course reflect this.

So, what does thread safe even mean and how do I make something thread safe? I have never worked with multi threading before, so this confuses me and, well, those warnings are REALLY annoying.

---

<div class="post-metadata">

**Author:** ![getnamo](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/getnamo/32/1194624_2.png) [@getnamo](https://forums.unrealengine.com/u/getnamo)\
**Post date:** [March 29, 2017, 6:02pm UTC](https://forums.unrealengine.com/t/how-to-create-thread-safe-nodes-and-functions-in-animbp/388746/2 "2017-03-29T18:02:33Z")

</div>

We need a way to mark e.g. pure functions as thread safe to supress these warnings. I haven’t yet found a way to do this, could someone from epic confirm whether it’s possible to do this in UE4.15 or if it will need a fix in a later engine build. From a workflow perspective I’m expecting something like the pure toggle to mark the function thread-safe.

---

<div class="post-metadata">

**Author:** ![Ryan\_Kratt](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ryan\_Kratt](https://forums.unrealengine.com/u/Ryan_Kratt)\
**Post date:** [October 19, 2017, 11:03pm UTC](https://forums.unrealengine.com/t/how-to-create-thread-safe-nodes-and-functions-in-animbp/388746/3 "2017-10-19T23:03:36Z")

</div>

Bumping this. I have a very safe, non state modifying BlueprintPure specified function I’d like to avoid compile warnings with!

---

<div class="post-metadata">

**Author:** ![staticvoidlol](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@staticvoidlol](https://forums.unrealengine.com/u/staticvoidlol)\
**Post date:** [October 21, 2017, 5:34pm UTC](https://forums.unrealengine.com/t/how-to-create-thread-safe-nodes-and-functions-in-animbp/388746/4 "2017-10-21T17:34:22Z")

</div>

You can use the following decoration:

```
UFUNCTION(BlueprintCallable, meta = (BlueprintThreadSafe))

```

I think you should ensure that you don’t query e.g. the character in these functions. The way I got around this is to rather push values from my Character during its tick to the AnimInstance instead of the AnimInstance querying the Character params. It unfortunately requires a lot of duplication.

---

<div class="post-metadata">

**Author:** ![GNUton](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GNUton](https://forums.unrealengine.com/u/GNUton)\
**Post date:** [December 8, 2017, 11:30pm UTC](https://forums.unrealengine.com/t/how-to-create-thread-safe-nodes-and-functions-in-animbp/388746/5 "2017-12-08T23:30:44Z")

</div>

Same here! Any update?  
Should this reported as bug or feature?

---

<div class="post-metadata">

**Author:** ![BojanglesTheLess](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BojanglesTheLess](https://forums.unrealengine.com/u/BojanglesTheLess)\
**Post date:** [August 15, 2022, 2:57pm UTC](https://forums.unrealengine.com/t/how-to-create-thread-safe-nodes-and-functions-in-animbp/388746/6 "2022-08-15T14:57:07Z")

</div>

Is this possible? Looks like it’s in ue5, I guess it’ll never work in 4? Anyone have any idea?

---

<div class="post-metadata">

**Author:** ![E\_PepeGamer](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@E\_PepeGamer](https://forums.unrealengine.com/u/E_PepeGamer)\
**Post date:** [August 9, 2025, 6:07pm UTC](https://forums.unrealengine.com/t/how-to-create-thread-safe-nodes-and-functions-in-animbp/388746/8 "2025-08-09T18:07:54Z")

</div>

> [@staticvoidlol](#):
>
> The way I got around this is to rather push values from my Character during its tick to the AnimInstance instead of the AnimInstance querying the Character params.

If you do like that the variables used in the animbp but updated from outside may change in between BlueprintThreadSafeUpdateAnimation calls, so you have to take that into account.
