00Xander00 on 19 December 2017
Unity uses C# and UE4 uses C++.
Unity only costs a one-time fee to publish games, UE4 is free to use but costs royalties from whatever profit you gain from selling the game (including profit from Ads).
I know that UE4 would be the best option atm for certain AAA Console/PC games with the more lighting/shader options but Unity is growing in popularity and (With continuous upgrades) it may overtake UE4 in years to come.
If your just making an indie or mobile game, choosing either software is understandable.
As for me, I just make 2D games in Gamemaker atm, but I'm a 3D animator who uses Maya and software alike and I've been thinking of making a 3D game for a while, I've already built a good asset in Maya (character modeled + textured. but not rigged or animated yet) with a clear game design in my head and I've been wondering which 3D game-dev software to use too. I was actually going to use Unity (to create a character controller then go on from there) as unity is really popular in the industry, only a one-time fee for a publishing license (unless for a console publishing license which has a 12 month expiry date), there are tones of tutorials and it's popularity is increasing. But I may look into UE4 for another project (Even though I'm not a AAA developer) as it is free until I make a profit plus the lighting/shaders are really nice but I hope there is as many tutorials for UE4 as there is with Unity. I'm sure they'll be plenty of tutorials out there for both :)
I have (or have/had in the household): ZX Spectrum, Commodore 64, Amiga, NES, Sega Master System, Super Nintendo, Sega Megadrive, Gameboy, Playstation, Nintendo 64, Windows 95, Gameboy Colour, Windows 98, Sega Dreamcast, Gameboy Advance, PS2, Gamecube, Xbox, Windows XP, Nintendo DS, Xbox 360, Wii, PS3, Windows Vista, iPhone, Windows 7, 3DS, Wii U, PS4, Windows 10, PSVR, Switch, PS5 & PSVR2. :D
and I Don't have: Magnovox Odyssey, Any Atari's, Any Macintosh computers, Sega Gamegear, Virtual Boy, Sega Saturn, N-gage, Xbox One, Xbox Series X/S, PSP, PSVita & Andoid Phone. Plus any non-main-stream consoles/platforms I haven't mentioned.