What I am ultimately trying to do is allow for runtime importation of files outside the project, in this case images. I will takes these images and make them into UTexture2D. From here I was trying to see if it would be easier to create my own UMaterial and UMaterialInterface or use preexisting ones. I wanted to switch out textures on a static mesh component when the application first runs
I know this is digging into a lot of stuff which is probably violating the EULA but these edits are for in house use and not distrabution.
The code I posted was from my own method heavily based from material.cpp’s overrideTexture method