I was looking at the Raptor and noticed the white looking tubes underneath the canopy. Do the tubes have a purpose? If so what is the purpose/function of the tubes? Are there any other aircraft with this kind function? Thanks.
Those are Cartridge Actuation Devices (CADs) - pyrotechnic charges used during canopy separation for canopy jettison or ejection. Note the nozzles at the outboard ends and the ignition wires inboard.
You can see a ground test of a similar unit installed on an F-16 below.