Unity does work on Linux but it is up to the developer to compile an executable for Linux. Source: I play a lot of Unity games on my Steam Deck, both on the Arch-based SteamOS and then after switching with the Fedora-based Bazzite to use since general use purposes since my Deck is my only computer.