How can I get an array of textures used by a material at runtime, in c++?
For example, when a user clicks an object, I would like to print the names of the textures used by the object’s material.
I know I can use MaterialInstance.GetTextureParameterValue("TextureName")
to get the texture, but this implies that I know the texture name. I would like something which works with any textured material.