I want to make an array of png images so that I can use them as player portraits during the character creation scene.
The creation scene has a button for cycling through each of the portraits as it increments the png array element.
The problem I am running into is that I don’t know what type to make the array. I set the array to “MaterialSpriteElement”,
which seems the closest to what I am trying to do, and created unique materials for each png image. This seems to be the right track,
but I can’t figure out how to access the image component on the UImage element to change it when the array element is incremented.
- Am I making the correct array type?
- How do I access the image component of the UImage to make it change as the array is incremented?
- Is there a better way to do this?
Note: Doing all of this in blueprint.
I solved this problem by making the variable an array of Texture2D’s and calling “SetBrushFromTexture” on the Uimage.