It takes place in a different galaxy, but plot points for the third game and several of the weapons and gameplay elements are introduced, especially weapon upgrading and small planetoids.
Let's just say then ending of UYA loses some of it's impact if you haven't played the first two.