UMaterialInterface::GetUsedTextures() vs. FMaterialResource::GetReferencedTextures()

I’m trying to get all the textures used by a material, and seem to have to call both of these to get all referenced textures.

Most of the materials in the SunTemple level return an identical texture set for both calls, but a significant minority return different e.g. M_BottomTrim_Inst, M_Dome_2, M_Dome_Inst, and M_Procedural_Sky_MASTER02

What is the correct procedure to get all the textures required to render a given material (at a given feature and quality level)?

Cheers
John

One will be the instance’s final textures, one is the parent materials textures (from what I can tell). And looks like the one you want is Used, which is the actual set of Used textures by the instance…