Destructible procedural building

I made a simple blueprint that uses instanced static meshes to randomly generate a building. Two meshes are used, a cube and a translucent cube(for windows).
How would I go about detecting which mesh I hit, using a trace?
I know how to get the index of a instance if there is only one mesh, but I have more than one mesh so first I need to detect which one I hit(cube or window).

My goal is to create a procedural destructible building that does not melt my computer.

Same way you’re doing it for for one mesh, you just do a for loop for your array of meshes, and save which instanced mesh it was alongside your distance and detection.