- Home /
Should build of a 2D project using the new 2D features in 4.3 be smaller than a 3D project?
I've started experimenting with the new native 2D tools included in Unity 4.3.
I was under the impression that for game projects using only the new 2D features, Unity could strip out all the extra libraries/frameworks/etc necessary for 3D games. This would result in smaller build sizes I had hoped.
However, I just did a test of generating an Android APK for two brand new empty projects, one created in 2D mode, one in 3D mode. Both builds ended up exactly the same - a little less than 8MB.
Am I missing something? Should I expect Unity to be generating different sized builds in this situation? Or are all the 2D libraries and 3D libraries both included in all builds now?
Answer by OP_toss · Nov 20, 2013 at 10:53 PM
The 2D stuff is just a system to use 3D stuff in a way that appears 2D. It's not actually 2D, as you can see in the Scene view. It's a fake that allows you to create 2D and 3D stuff that interact, and are rendered through the same exact pipe. So no, I doubt they could actually remove any libraries or functionality as they are essentially both 3D.
Please correct me if I'm wrong, I haven't got a chance to dive into 4.3 yet.
well, I remembered reading that the 2D Physics would be using the box2d library. That made me assume that they would be able to strip out whatever 3D physics (and maybe other 3D code) they had for 2D builds. $$anonymous$$aybe that's not the case though... It's starting to sound like it's just an alternate mode for the editor, physics, and rendering.