Download

Loading textures from memory?

After few hours if searching for the answer in the source code I was left with the following question:
Loading textures from memory, is it even possible?

Never mind, found it.https://github.com/EpicGames/UnrealEngine/blob/4.0/Engine/Source/Runtime/Engine/Private/ImageUtils.cpp

These functions have the inconvenience of being editor-only. When building the release game, CreateTexture2D will be removed from the binaries, for example. You should not rely on these.

I would love to know if anyone has figured this out, I have a Answer Hub question up here. I’ve spent a 16 hour day on this to no avail, I can’t believe something so simple has been so problematic.

EDIT: Well this little AnswerHUB question has turned into an interesting resource. If you’re wondering how to get a handle on Slate UI Resources, the link below is the place.

https://answers.unrealengine.com/questions/17910/loading-a-texture-from-c.html