I've lost my job as an Unity game programmer 2 months ago. I've found another one working as a C#/ASP.NET core developer for a big multinational wholesale chain. I work here since a month ago.
Payment is 2x better and I find Web stuff being more interesting and rewarding than game programming. Also it's less stressful and it's better to do something mainstream than working in a niche. It means more opportunities.
I've went through about 20 something job interviews until I had enough to chose from.
I stayed 6 years until the company closed. I did wanted to switch jobs since 2 years ago but I kept finding excuses.
Lessons learned both from my experience and from talking to other game programmers: working on games would not fit exactly your pre-made image of it, most jobs in gaming industry will be underpaid (my case) and require overworking (as others told me), it's fine to switch jobs if you are underpaid or bored, it's good to get out of your comfort zone, working in a large company is not as bad as it can seem for someone who only worked in small teams and the best way to get a raise is going to job interviews and trying to sell your skills the best you can.
I've learned C# before getting into Unity. Afterwise I kept learning and learned ASP.NET besides Unity stuff. There are lots of things you can't use in Unity or their usage is against Unity workflow: constructors, tasks, threads, dependency injection, unit tests.
Now I develop an user creation application for our data warehouse. It's not as interesting as writing the next cool trending app, but I can take what design decisions I deem necessary and I can use new technologies like.NET core 3.1 and Angular 9. That would sharpen my skills and make me more employable.
And nothing stops me to work in my free time in a more interesting project which I hope I will launch as a business in a few years. It helps that I am doing web programming at work because I don't have to jump from one tech stack to another daily and I can learn and experiment faster.
Payment is 2x better and I find Web stuff being more interesting and rewarding than game programming. Also it's less stressful and it's better to do something mainstream than working in a niche. It means more opportunities.
I've went through about 20 something job interviews until I had enough to chose from.
Good luck!