# Is there any way to import a texture in game during runtime?

**URL:** <https://forums.unrealengine.com/t/is-there-any-way-to-import-a-texture-in-game-during-runtime/469036>\
**Category:** Asset Creation\
**Tags:** unreal-engine, import, runtime, UE4, question, Blueprint\
**Created:** [August 1, 2020, 12:44pm UTC](https://forums.unrealengine.com/t/is-there-any-way-to-import-a-texture-in-game-during-runtime/469036 "2020-08-01T12:44:34Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![MBIGCAT](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MBIGCAT](https://forums.unrealengine.com/u/MBIGCAT)\
**Post date:** [August 1, 2020, 12:44pm UTC](https://forums.unrealengine.com/t/is-there-any-way-to-import-a-texture-in-game-during-runtime/469036/1 "2020-08-01T12:44:34Z")

</div>

Is there any way to import a texture in game during runtime? If possible I would also like to be able to do it in blueprints? Thanks!

---

<div class="post-metadata">

**Author:** ![Tuerer](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tuerer/32/1008648_2.png) [@Tuerer](https://forums.unrealengine.com/u/Tuerer)\
**Post date:** [August 1, 2020, 1:12pm UTC](https://forums.unrealengine.com/t/is-there-any-way-to-import-a-texture-in-game-during-runtime/469036/2 "2020-08-01T13:12:12Z")

</div>

I can tell you that you can import a texture and use it as a parameter in a dynamic material. The BP node is [Import File as Texture 2D].

However, I can’t tell you how you can save it or how you can get a file selection window in blueprints. Maybe there is a way, I just don’t know it =)

---

<div class="post-metadata">

**Author:** ![MBIGCAT](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MBIGCAT](https://forums.unrealengine.com/u/MBIGCAT)\
**Post date:** [August 1, 2020, 1:21pm UTC](https://forums.unrealengine.com/t/is-there-any-way-to-import-a-texture-in-game-during-runtime/469036/3 "2020-08-01T13:21:52Z")

</div>

thanks anyone else is welcome to answer

---

<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:** [August 1, 2020, 4:21pm UTC](https://forums.unrealengine.com/t/is-there-any-way-to-import-a-texture-in-game-during-runtime/469036/4 "2020-08-01T16:21:21Z")

</div>

This can help, but I am not sure

- [https://answers.unrealengine.com/questions/23440/loading-textures-at-runtime.html](https://answers.unrealengine.com/questions/23440/loading-textures-at-runtime.html)
- [FImageUtils::CreateTexture2D | Unreal Engine Documentation](https://docs.unrealengine.com/en-US/API/Runtime/Engine/FImageUtils/CreateTexture2D/index.html)

---

<div class="post-metadata">

**Author:** ![KKochiss](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KKochiss](https://forums.unrealengine.com/u/KKochiss)\
**Post date:** [June 24, 2021, 9:28pm UTC](https://forums.unrealengine.com/t/is-there-any-way-to-import-a-texture-in-game-during-runtime/469036/5 "2021-06-24T21:28:26Z")

</div>

It is possible, I’m sure you can find a blue print node to do this but in C++ all you need to do is the following:

```
FString FilePath = "C:/Users/MyUser/Images/MyImage.png";
UTexture2D* MyTexture = FImageUtils::ImportFileAsTexture2D(FilePath);

```

If you know where the image file is within your game directory and you know what the name is then you can use:  
FString FileName = FPaths::ProjectPersistentDownloadDir()+“imageName.png”

You can google for each function name followed by UE4 blueprint and you’’ get your nodes.

---

<div class="post-metadata">

**Author:** ![ShadowBr0kerz](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/shadowbr0kerz/32/1201558_2.png) [@ShadowBr0kerz](https://forums.unrealengine.com/u/ShadowBr0kerz)\
**Post date:** [September 1, 2026, 4:10pm UTC](https://forums.unrealengine.com/t/is-there-any-way-to-import-a-texture-in-game-during-runtime/469036/6 "2026-09-01T16:10:33Z")

</div>

Yes via ImportFileAsTexture2D, but file picker is the missing piece. Runtime Directory Watcher pairs StartWatchingDirectory + LoadTextureFromFileAsync so players drop files and game picks up automatically. [https://t.ly/O9aiT](https://t.ly/O9aiT)
