Unhappily has 3 different meanings across 1 category:
Adverb
in an unpleasant way
"they were unhappily married"
in an unfortunate way
"sadly he died before he could see his grandchild"
Unfortunately; regrettably.