# Is it possible, with Datasmith runtime, to wait for import to finish before running the rest of code?

**URL:** <https://forums.unrealengine.com/t/is-it-possible-with-datasmith-runtime-to-wait-for-import-to-finish-before-running-the-rest-of-code/629301>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [August 16, 2022, 7:00am UTC](https://forums.unrealengine.com/t/is-it-possible-with-datasmith-runtime-to-wait-for-import-to-finish-before-running-the-rest-of-code/629301 "2022-08-16T07:00:42Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![UE\_FlavienP](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ue_flavienp/32/1194546_2.png) [@UE\_FlavienP](https://forums.unrealengine.com/u/UE_FlavienP)\
**Post date:** [August 16, 2022, 10:20am UTC](https://forums.unrealengine.com/t/is-it-possible-with-datasmith-runtime-to-wait-for-import-to-finish-before-running-the-rest-of-code/629301/2 "2022-08-16T10:20:45Z")

</div>

One way to do it is to check if the Datasmith Destination is receiving or building.  
There is no event yet.

Here the “Anchor” is your datasmith destination variable. And the event is called on tick to monitor its change of status.

E.g.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/b/1/db1d566104518f09c1421855b57dc24637fd57a8.png)

---

_[View the full topic](https://forums.unrealengine.com/t/is-it-possible-with-datasmith-runtime-to-wait-for-import-to-finish-before-running-the-rest-of-code/629301)._
