You keep saying Java instead of JavaScript, and what does the choice of language have to do with 2D versus 3D?
I am just abbreviating JavaScript into Java, but since Game maker studio 2 uses JavaScript and it is good at making 2D games but not 3D games one could assume the Unity is good at making 3D games with python and is bad at making 2D games.
Maybe... I haven't used python before it just feels kinda feels that way, either way I am open to being wrong.