UMeshComponent::CacheMaterialParameterNameIndices

Retrieves all the (scalar/vector-)parameters from within the used materials on the SkeletalMesh, and stores material index vs parameter names