How do I create/update a texture from a material at runtime?

Hi folks,

I need to create a texture at runtime (game start, level generation phase) to use in my level generation. How can I do this using a material instance, overwriting a placeholder texture at runtime?

Context: I am using a noise function in my material to create my level generation pattern, which I need to transfer to a texture to use for the spawning of the actors in my level.

Any help appreciated!