Change Color of an Instanced Mash with 6 Materials

I have a cube with 6x the same material, one for each side.
Now I’ll make an instance of the cube (image 1).
The material looks like this (picture 2).
With only one material I can change it like in picture 1, but how can I do that with 6 materials?


Solution found.

Each side of the cube needs its own copy of the material with a consecutive parameter number, then you can set the parameters individually for each one.

I’ve added a texture to the whole thing, where you can display part of the texture via parameters, so it’s possible to give each side of an instance its own texture and color.

Excuse my english, let google translate it.