Use a 3D array as texture

Hi!

I’ve developed an AI script which performs analysis of the level map and populates the following array with the result every few frames (I only update it 4 times a second):

float m_Map[k_SizeX][k_SizeY][3];

The script is attached to a flat ‘ground’ model, I want to use the values from the array above to colour this object. More specifically the k_SizeX and k_SizeY to correspond to a pixels on a 2D texture, I then want that pixel to take it’s RGB values from the final component of the array.

I should note that I’ve done this before in my bespoke engine by exporting to a texture file and reloading it every frame, which was slow and I wound’t say it was a good solution. I was hoping Unreal has something that I can use to simplify the process. (I’m completely new to Unreal btw).