I am pretty sure Unity is written in C++ actually. It provides it’s users the choice of scripting languages, C#, JavaScript or Boo. But, you have to pay a lot to get a source license to the Unity Engine itself.
UE4 has Blueprints for it’s scripting environment built in. People in the community are making 's to add C# etc.