# How to load model with texture at runtime

**URL:** <https://forums.unrealengine.com/t/how-to-load-model-with-texture-at-runtime/480044>\
**Category:** Community & Industry Discussion\
**Tags:** loading, unreal-engine, runtime, question\
**Created:** [March 10, 2021, 12:05pm UTC](https://forums.unrealengine.com/t/how-to-load-model-with-texture-at-runtime/480044 "2021-03-10T12:05:25Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_592d975e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_592d975e](https://forums.unrealengine.com/u/anonymous_user_592d975e)\
**Post date:** [March 10, 2021, 12:05pm UTC](https://forums.unrealengine.com/t/how-to-load-model-with-texture-at-runtime/480044/1 "2021-03-10T12:05:25Z")

</div>

I am new to use the unreal engine. However, it really makes me frustrated.

What I want to do is simple: load model and texture it at runtime, change its position and rotation, then render the scene. I searched online, and find several plugins may related to loading model at runtime. runtime mesh import export plugin, or RuntimeMeshLoader. The ‘runtime mesh import export’ can not be installed on my mac. And the ‘RuntimeMeshLoader’ only work with the mesh part. For now, i haven’t found a solution to simply load model with texture. This really makes me confused: loading object and its texture is a basic step for 3d operations. For example, panda3d can do it well by just a load\_model() function.

What I needed is to load some models (not static, each time the model list may change) and put them in the scene, then render. Anyone help here?

---

<div class="post-metadata">

**Author:** ![Kehel18](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kehel18](https://forums.unrealengine.com/u/Kehel18)\
**Post date:** [March 10, 2021, 4:01pm UTC](https://forums.unrealengine.com/t/how-to-load-model-with-texture-at-runtime/480044/2 "2021-03-10T16:01:10Z")

</div>

Hello.

1. As for mesh - how complex are models that you want to load? Do they contain morph targets or skeleton and animation?

2. You can import texture with ImportFileAsTexture2D node

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_592d975e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_592d975e](https://forums.unrealengine.com/u/anonymous_user_592d975e)\
**Post date:** [March 12, 2021, 6:49am UTC](https://forums.unrealengine.com/t/how-to-load-model-with-texture-at-runtime/480044/3 "2021-03-12T06:49:57Z")

</div>

I also found RuntimeMeshComponent plugin, but I don’t find out how to load model file with it.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_592d975e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_592d975e](https://forums.unrealengine.com/u/anonymous_user_592d975e)\
**Post date:** [March 12, 2021, 7:01am UTC](https://forums.unrealengine.com/t/how-to-load-model-with-texture-at-runtime/480044/4 "2021-03-12T07:01:53Z")

</div>

Hi, my mesh don’t contain morph targets or skeleton animation.  
Yeah, i can successfully import texture with ImportFileAsTexture2D function, but I don’t know how to apply the texture2d to mesh loaded with RuntimeMeshLoader plugin

---

<div class="post-metadata">

**Author:** ![EvenZHAnglll](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@EvenZHAnglll](https://forums.unrealengine.com/u/EvenZHAnglll)\
**Post date:** [March 12, 2021, 7:01am UTC](https://forums.unrealengine.com/t/how-to-load-model-with-texture-at-runtime/480044/5 "2021-03-12T07:01:57Z")

</div>

Check the plugin RuntimeMeshComponent. It can load 3d model files at runtime.

It can load many common model file formats including obj, stl, fbx, x, 3ds, dae.

Unreal marketplace:

> **[Runtime Mesh Lite in Code Plugins - UE Marketplace](https://www.unrealengine.com/marketplace/en-US/product/runtime-mesh-component)**
>
> Component for rendering procedurally generated meshes!

GitHub:

> **[GitHub - TriAxis-Games/RuntimeMeshComponent: Unreal Engine 4 plugin component...](https://github.com/TriAxis-Games/RuntimeMeshComponent)**
>
> Unreal Engine 4 plugin component for rendering runtime generated content. - GitHub - TriAxis-Games/RuntimeMeshComponent: Unreal Engine 4 plugin component for rendering runtime generated content.

---

<div class="post-metadata">

**Author:** ![Kehel18](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kehel18](https://forums.unrealengine.com/u/Kehel18)\
**Post date:** [March 12, 2021, 7:28am UTC](https://forums.unrealengine.com/t/how-to-load-model-with-texture-at-runtime/480044/6 "2021-03-12T07:28:13Z")

</div>

There several steps to do it in BP:

- create Material, add several texture params and name them (for example Base color and etc)
- **CreateDynamicMaterialInstance** node can make Dynamic Material Instance from Material asset
- Load texture and use **SetTextureParameterValue** node to initialize Dynamic Material Instance
- Get Static Mesh Component from your actor and use **SetMaterial** node to update

That’s all
