A better way to change the material of an spawned actor picked randomly from an array

I have trouble to get a reference to a static mesh component in an actor which is spawned from an array of many actors randomly, please see my screenshot. My solution is very manual.