Finding the textures used on terrain

Hi all.

I was curious if there is any way to see what Textures are being used on a specific terrain.

For example I use a grass, dirt, and sand png to texture my terrain. I want to be able to confirm this however inside a script.

In other words, I need a list of textures that a certain terrain is using.

Got it.

terrain.terrainData.splatPrototypes[0].texture.name