You should use the babel package and set the language to hungarian. This also changes the typesetting rules. If Number Figure is the proper sequence in Hungarian, it should automatically change this. On this (Hungarian) site you can find Babel documentation.
Edit: If you check page 207 of this document is says:
In the part, chapter, appendix name the number (or letter) goes before the
name, so ‘Part I’ translates to ‘I. rész’.
The same is true with captions (‘Table 2.1’ goes to ‘2.1. táblázat’).