Why does the Unity Game Engine use C# instead of C++ and is C# much different than C++?

Why does the Unity Game Engine use C# instead of C++ and is C# much different than C++?

It uses C++ on the engine side of things. It only uses C# on the scripting side of things.

As for why… because… because someone chose mono. Why use any language? Why use C++? Why use javascript? Why use python? Why?

And yes, C# is very much different from C++. It has a syntax inspired by C++ (or rather inspired by Java which was inspired by C++). But there’s more different from C++ than there is similar too.

Beyond that this topic is so vague and broad there’s not a whole lot to say in regards to your question with out just going on tangents.

Do you have any specific questions about what you’re asking?

What are you trying to get at?

1 Like

It’s red and fluffy.

1 Like