I have never had to attend a funeral for a fellow pilot, but I do know some folks who have and they did attend in uniform and there were a number of other pilots from various other airlines in uniform...hope this helps
God be with the souls of those on board as well as family and friends involved