TexturePaintHelpers::FindMaterialIndicesUsingTexture

Tries to find Materials using the given Texture and retrieve the corresponding material indices from the MEsh Compon