It should mostly be a mix of common sense and what you'd like to use the weapon for. However, here are a couple of general rules for the 'best' UVs
Swords: Attack Speed Increase
Guns: Damage Boosts to slimes/constructs/undead (things you'd be shooting at a lot, basically)
Bombs: Charge Time Reduction
Shields and armour: Defense increases that differ to those the armour provides i.e. Elemental Defense on a Wolver Coat, Shadow Defense on a Nameless Poncho etc.
There are exceptions and it depends somewhat on your playstyle (if you use a Calibur for example, Charge Time Reduction or a damage bonus vs. fiends is handy), but there's some things to think about.