How to replace a Mesh at runtime?

I’m having trouble getting this to work. I have an Array that contains some mesh variations and another array with textures. Now I’d like to select them via script at Awake. It works fine with the texture, but I can’t figure out how to write it for the Mesh to work. Any hints?

For the texture it’s this:

What would be the equivalent code to select the mesh from the array?

I’d be glad for tips.

GetComponent.().mesh = mesh[1];

–Eric

Thanks! That did it