It is a common misconception that if you are a third-country national staying in Hungary with a residence permit based on employment (a work permit), you MUST switch to family unification when you are getting married. Actually, the issue is more complex, and depends on the nationality of your spouse.