Announcement

Collapse
No announcement yet.

Load textures at runtime

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Load textures at runtime

    As the title says, I am trying to load a bunch of textures in at run time. I've been able to load them all up through the "ConstructorHelpers::FObjectFinder<UTexture2D> MyObj(*(objectPathHere));" and then set a materials texture with them. However, I will need to do this at runtime, where a function is called and X number of textures are loaded from a function and placed into a UTexture2D array?

    I've took a look at ASync loading of objects, but I'm not sure whether that is the correct approach I should be making and I get some errors following that documentation which I can't seem to figure out in the Streamable manager area.

    I'm sure this is a common thing that most game's will need to do at some point, so I'm confident someone will have a simple/effective answer, thanks!
Working...
X