Hi,
Raycast all should work.
When you turn on debug on the action you can see the Ray it's casting (standard a yellow line)
For the direction you can play around with the direction, it is best to test that in run-time so you can see the line.
You can also work with layers, add a layer mask and chose the element. and give the objects that layer
When you cast every frame, when the ray is not hitting an enemy anymore it will also be removed from the array. But the last one hit will stay in the array.
If you have multiple raycasts connected to 1 array it will only get the result from 1 raycast.
So you need a separate array for each cast and then merge the arrays when needed.