# How can I SpawnActor in Thread?

**URL:** <https://forums.unrealengine.com/t/how-can-i-spawnactor-in-thread/421317>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [March 30, 2018, 10:50am UTC](https://forums.unrealengine.com/t/how-can-i-spawnactor-in-thread/421317 "2018-03-30T10:50:41Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Shadowriver](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Shadowriver](https://forums.unrealengine.com/u/Shadowriver)\
**Post date:** [March 30, 2018, 3:51pm UTC](https://forums.unrealengine.com/t/how-can-i-spawnactor-in-thread/421317/2 "2018-03-30T15:51:35Z")

</div>

Don’t use standard C++ library with UE4, aspecially in such sensitive matter as multi threading. UE4 provides it’s own implementation and you should use it so UE4 is aware of thread creation:

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — https://unrealcommunity.wiki/! You will be able to find content from...

But it might be still impossible to what you trying to do, UObjects should not be used else where then game thread, you most likely get crash with error informing you about it. You could make illusion of asynchronous spawns by doing that on tick when you green lit with some variables, you can also spread it across few frames if you thinking about performance. Explain your case, we might figure some alternatives.

---

_[View the full topic](https://forums.unrealengine.com/t/how-can-i-spawnactor-in-thread/421317)._
