Does UNITY use Java? | Sololearn: Learn to code for FREE!

+5

Does UNITY use Java?

9/1/2020 1:52:55 PM

I M J

20 Answers

New Answer

+4

Arsenic Minecraft was originally written in Java, but it is now written with C++ because of the better performance.

+4

Arsenic Calviղ ohkk thanx

+4

Java is fast enough for some games. Though high performance game engines do tend to use C++. It depends on what the workload is like for the game. If you want AAA type 3D graphics with high polygon counts then C++ is preferable. The Unity game engine is programmed in C++. It uses C# as it's scripting language. This is similar to how a web browser uses JavaScript as a scripting language. You can do things in the browser using JavaScript but you can't make the browser do things it wasn't designed to do. Likewise you can script things in the game using C# but you can't add new features to the engine that aren't there already. To extend the Unity engine you will need to edit the engine source code (C++) and recompile it.

+4

Martin Taylor thanks

+4

Arsenic Where is Antimony ?¿ 😁

+4

Arsenic oh!! (M)ag(J)nesium is far away from his reach!! This metal wants to come in group 15!!

+3

You can't (effectively). C# (unity's prime language) is very similar to Java, so you can prefer that over java. Source : https://forum.unity.com/threads/unity-with-java.481679/

+3

Calviղ But is it, as far as I heard, they won't give any new updates to their latest versions?? (Of pocket edition, may be !)

+3

Krishna Chandra thanks

+3

M J he is hanging out with bismoth.

+2

No, Java is too slow for game programming. You would never see high end games built on slow languages like Java or Python.

+2

Calviղ then what about minecraft ? Isn't it made with JAVA ?

+2

Calviղ you are right, after some quick Google searches I found out that they are porting the entire game to C++ now. I wonder why mojang's version is known as JAVA edition.

+2

Calviղ Minecraft is still written in Java, but only for pc. Minecarft Bedrock (For mobile, xbox, playstation, and switch) is written in c++, for the aformentioned performance benefits.

+2

Arsenic No, they are not porting the whole game to c++, and are still focusing as much (if not more) development resources to minecraft Java.

+2

The best choice for unity is c# .

+1

Unity uses c# c sharp

+1

Unity uses C#, not Java

+1

It uses c#