Search Unity

Hi from the Unity Mobile team,

With Unity 4, you will have 10 platforms to which you can publish your awesome game. But in this blog, we’ll focus on the updates and new features for mobile development. You can start by taking a look at this video, which gives a nice overview of the features for mobile development. For more technical information on each feature, just keep reading! Thanks.

Dynamic Shadows

Unity 4 includes one of your most requested features: dynamic shadows on mobile devices! Mobile hardware is getting faster and faster, and with Unity 4, you can now cast hard dynamic shadows from directional lights.

Dynamic Fonts on Mobile

In Unity 4 you will be able to use dynamic fonts on mobile devices. You can include any OS fonts without having to include font data in your build. At runtime a font sheet is dynamically created with only the characters that are currently needed. This allows you to keep the build size down. If you do not want to use an OS font you can also embed ttf files (and fall back to OS fonts for missing characters / languages). Using dynamic fonts (embedded or not) saves runtime texture memory in languages where you have many characters, but typically do not use all of them. Additionally, Unity 4 also supports using HTML-like markup when rendering text. This allows for easy insertion of styles in an inline manner.

Both dynamic fonts and HTML like markup are part of the core unity product and are not limited to mobile platforms.

Normal maps considered when lightmapping

Lightmaps are a great way to improve the graphical fidelity of a game. In Unity 4 it is possible to bake lightmaps so that normal maps are included in the baking process. This means that it is possible to see the normal map information in static lighting. This works in all rendering modes and is not just limited to mobile hardware. This feature helps make lightmaps look amazing.

Automatic upscaling when rendered in lower resolution

In Unity 4 it’s possible to set a resolution for rendering that is different to the native device resolution. This allows you to render your game at a resolution lower than the screen resolution then for display upscale to the devices’ native resolution. Because you are rendering to a smaller buffer for the majority of rendering you will see good performance gains.

Eclipse project generation for Android

When building to Android you can now generate an Eclipse project instead of directly publishing from Unity. Doing this allows for easier integration and iteration when using third party libraries and you can also add Android specific code at this step. Once deployed to a device debugging can also be done via Eclipse.

GPU Profiling for Android devices with Tegra

When trying to squeeze the most of out of a game it’s important to profile. Profiling helps identify areas in your game that are running too slow, and areas that could have more assets added to them. You can now perform GPU profiling on a mobile game for Android with a Tegra chip. By using the Unity profiling tools you can profile on Tegra the same way that you would on a PC game. This includes getting individual draw call timings and being able to examine on a per frame basis the state of the rendering pipeline (memory usage, render texture usage, etc).

33 replies on “Unity 4: AAA graphics and performance for your mobile games”

Unity 4 is really impressive, I would never imagine to see all those features on a device.

Hi there, just became aware of your blog through Google, and found that it’s truly informative. I’m planning to watch out for brussels. I will be grateful if you resume this in future.

Generally I don’t read post on blogs, but I would like to say that this write-up very forced me to try and do it! Your writing taste has been amazed me. Thanks, quite great article.

All these games look amazing in the video. I hope it will increase interest in the Windows Phone, because I do not what to play on my phone … everything is in its infancy

Great additions, Lightmaps that use normalmaps normals and profiling of the GPU would be enough for me to upgrade. @ Francois, Although its not straightforward DOF in a real game context is possible now with unity mobile.

[…] Read: Unity 4: AAA graphics and performance for your mobile games ( Share this:EmailFacebook This entry was posted in Games by johan. Bookmark the permalink. […]

Marvelously armirable, this is like the nexus singularity moment for Unity, so much in so little time.
I hope however for more fancy integrated shaders for mobile.
Is it AA there in Android finally? Keep up.

The introduction of dynamic fonts is awesome but I did notice that three of the characters in the ‘Bold’ text are overlapping.

Is there any way to adjust the character spacing or kerning?


From squinting at the Unity editor title bar it looks like:

MedievalTown.unity – Mobile Shadow Demo – Android

While I am looking forward to the dynamic fonts and shadows. My wish list includes getting an official solution for Android Apps over 30/50 MB for Google Play with expansion APK support. (Asset Bundle are slow, consume additional RAM, and require additional work). I really would like something that would allow me to use the Resources folder and have a separate download of this resource folder using the XAPK option.

I would also like some additional options for the VERY lacking Handheld.PlayFullScreenVideo().

Oh well off to I go I guess.

shadow maps –> does that mean we can expect other depth based fx to be feasible (like image processing DOF or SSAO) ?

Although I currently do not develop for mobile, the rich text feature (HTML formatting) for GUIText is impressive and I would love to have it in the current version of Unity. Will this be available for standalone and webplayer too or is this a mobile exclusive feature?

@ James – Right now Unity can build to PC, Mac, Web, Google Native Client, Flash, iOS, Android, Xbox 360, PS3 & Wii, and Linux is coming to Unity 4.0!

I assume the automatic upscaling will be available in the basic licenses? Because of course you can already do that with render textures in Pro. I also echo the question about selective elements (i.e. UI) being rendered native.

Robert and Nicolas M: Thanks, I thought I had read otherwise a while ago and hadn’t seen an update about it.

Another cool blog post. Really appreciate getting these updates on upcoming features/enhancements. The more you engage with the community the better in my opinion. Thanks! Bring on Unity 4.0!!

I really like this new style of Unity with these info video’s. Its a great concept, looks highly professional and works really well.

Great talk Tim!

Sound good. With the upscaling, will we be able to render the scene at lower res on a retina resolution device, and render the UI on top at full resolution.

I love hearing about mobile features. Every time I read about a new Unity feature I ask myself, “Yeah but does it work for mobile?” It’s great when mobile is discussed directly.

@Andrew: The web player supported full dynamic shadows from the very beginning, just like standalone builds.

Awesome! Dynamic Font on mobile devices are always been a much requested feature, it’s useful as hell. Combined with the incoming new GUI system, this will be perfect.

Comments are closed.