06/21/2021 | Press release | Distributed by Public on 06/21/2021 07:16
We added four new Screen APIs, and these will provide greater control over the display settings in games, enabling players with multiple monitors to select which monitor the game window should appear on. These APIs are: Screen.mainWindowPosition, Screen.mainWindowDisplayInfo, Screen.GetDisplayLayout() and Screen.MoveMainWindowTo().
The release includes support for Chrome OS within the Android Development environment. Unity will support x86, x86-64, and Arm architectures for Chrome OS devices. In addition, developers can build their own input controls to fully take advantage of keyboard and mouse setups or use built-in emulation. Since Chrome OS support is found within Unity's Android ecosystem, this means less platform maintenance and an easier process for publishing to the Google Play Store. Read more in the documentation and our forum discussion.
In 2021.2, Unity provides direct support for Android's new expansion file format, Android App Bundle (AAB) for asset building. Using AAB, developers can meet the Google Asset Delivery requirements to publish any new apps to Google Play.
Adaptive Performance 3.0 is available starting with 2021.2. This new version adds Startup Boost mode, which allows AP to prioritize CPU/GPU resources to help launch games more quickly. It also adds integration with the Unity Profiler to let you profile AP more efficiently in regular workflows. See the documentation and forum discussion for more information.
Creators building for Android devices can now take advantage of new Android thread configuration improvements, including options that allow you to choose whether to optimize your apps to be more energy-efficient or more highly performant. While the default settings should be fine for most users, this feature gives more advanced users fine-grained control over how their apps run to maximize their performance on hardware.
WebGL improvements include Emscripten 2.0.19, which gives faster build times and a smaller WebAssembly output for the WebGL Target.
This release also includes features for future support of the WebGL Player in mobile web browsers, including gyroscope, accelerometer, gravity sensor and attitude sensor values (iOS and Android browsers). Other enhancements include forward- and rear-facing web cameras and the ability to allow full-screen projects to lock their screen orientation on Android browsers.
Compressed audio support reduces the amount of memory used by the WebGL player in the browser for long-running background music and large audio files.
You can now choose ASTC or ETC/ETC2 compressed texture formats to target mobile web browsers, as well as BC4/5/6/7 texture formats for higher-quality compressed textures on desktop browsers.
Unity Distribution Portal (UDP) Improvements include support for the Editor's Play Mode. Additionally, the game will fetch the IAP products defined in your project, and purchases and consumes will always be successful so that you can test your fulfilment in Play Mode without any disruption from UDP methods waiting for their callbacks.
We're also adding a guide to help you through your UDP implementation. Once it knows how you intend to implement UDP (directly, or via Unity IAP) it will provide you with step-by-step instructions, as well as code samples. It's accessible through the Menu structure, where you should look for the Implementation Guide.