# import ressource at runtime

**URL:** <https://forums.unrealengine.com/t/import-ressource-at-runtime/313142>\
**Category:** Rendering\
**Tags:** skeletal, unreal-engine, runtime, question\
**Created:** [March 30, 2015, 10:05am UTC](https://forums.unrealengine.com/t/import-ressource-at-runtime/313142 "2015-03-30T10:05:57Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![flo291288](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@flo291288](https://forums.unrealengine.com/u/flo291288)\
**Post date:** [March 30, 2015, 10:05am UTC](https://forums.unrealengine.com/t/import-ressource-at-runtime/313142/1 "2015-03-30T10:05:57Z")

</div>

Hello,

There is there a legal solution to load a complete model (Mesh + meterials + skeletal + animation), during the execution of the software? (User Action to load the file of your choice).

Is the format “.uasset” would do this?

Best Regards.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_c7bdc0ec](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_c7bdc0ec](https://forums.unrealengine.com/u/anonymous_user_c7bdc0ec)\
**Post date:** [April 24, 2015, 6:25pm UTC](https://forums.unrealengine.com/t/import-ressource-at-runtime/313142/2 "2015-04-24T18:25:35Z")

</div>

I’d like to know this too!

---

<div class="post-metadata">

**Author:** ![Azarus](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Azarus](https://forums.unrealengine.com/u/Azarus)\
**Post date:** [April 24, 2015, 6:32pm UTC](https://forums.unrealengine.com/t/import-ressource-at-runtime/313142/3 "2015-04-24T18:32:14Z")

</div>

It depends on what do you want to import.

**Textures for example:**

```
FString Path = GameDir() + "Content/MyAsset.png";
UTexture2D *MyTexture = Cast<UTexture2D>(StaticLoadObject(UTexture2D::StaticClass(), NULL, *Path))

```

For more info about it:

> **[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 — ue4community.wiki! You will be able to find content from the official...

It should work with any supported asset type.  
If you want to import different model formats you have to implement them yourself as far as i know.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_c7bdc0ec](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_c7bdc0ec](https://forums.unrealengine.com/u/anonymous_user_c7bdc0ec)\
**Post date:** [April 24, 2015, 6:35pm UTC](https://forums.unrealengine.com/t/import-ressource-at-runtime/313142/4 "2015-04-24T18:35:18Z")

</div>

How about mesh files that are not assets? Say I wanted to load a mesh file on an end-user’s running game, and that mesh file has not been placed in the editor.

---

<div class="post-metadata">

**Author:** ![Azarus](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Azarus](https://forums.unrealengine.com/u/Azarus)\
**Post date:** [April 24, 2015, 6:37pm UTC](https://forums.unrealengine.com/t/import-ressource-at-runtime/313142/5 "2015-04-24T18:37:42Z")

</div>

I updated my answer. It should work with Static Meshes too. I had to load models that were not supported by the engine. I used assimp to import them at runtime. I hope it helps.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_0dafa81b](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_0dafa81b](https://forums.unrealengine.com/u/anonymous_user_0dafa81b)\
**Post date:** [December 23, 2015, 4:48pm UTC](https://forums.unrealengine.com/t/import-ressource-at-runtime/313142/6 "2015-12-23T16:48:59Z")

</div>

I also need to upload models runtime.

How to import assimp during runtime?
