I’ve used both GMStudio(latest iteration of GameMaker) and Unity, so I think I can judge pretty well. For the record, I have both installed, but I’m currently using Unity for my game, because though the game is 2d in gameplay, I want 3d graphics.
GMStudio, for 2d games, is really the bees knees. When I say 2d, I don’t mean 2.5d(except maybe iso graphics, but still 2d), and I especially don’t mean 3d limited to side view or anything like that. I mean pixel art, or HD art, or vector art, or even 3d pre-rendered into sprites. In the past things weren’t as good, but the latest GMStudio product is actually pretty good. The GML language can do a lot, and it can actually be compiled into C++ code. Even without that step, it is no longer run-time interpreted like it used to be. It has a physics engine integrated too. And despite what Hippo said up there, you CAN create shaders in GMStudio. In fact, people have made shaders meant for 3d, including ones that do vertex animation, etc… There is a shader set on GM’s asset store that does lighting, but not only simple overlay lighting, but rather normal based lighting, so you have to give it a normal map to go with the colored sprite, and it uses lights in 3d space and ends up looking 3d despite only being drawn in quads. But, for 3d games, GMStudio is crap. You can do some things, but it doesn’t have much of anything built in. The physics is only for 2d, there is no collision for 3d, and worse, there isn’t even any out of the box method to load 3d assets. You can code it yourself, but there are much better options.
Unity, for 3d games, is excellent. For all the good things about GMStudio for 2d games, Unity has it for 3d. And Unity has some 2d features as well, though they aren’t as advanced as GMStudio. But if you want 3d graphics, despite 2d gameplay, Unity wins. I’m not going to elaborate more, as this forum is Unity’s and there are plenty of things that have been said above. Also, if you intend on staying “free-to-play,” Unity is going to be better, as it can do 2d and 3d, and doesn’t put limits on export platforms. GMStudio has a nice free version(also with splash screen) but it doesn’t allow export to all the platforms.
I just wanted to clarify those few points in GMStudio’s defense. It has evolved into something much better than in the past.