Version: Unity 6 (6000.0)
Language : English
Game state hinting
Large screen and foldable device support

Optimize for user preferences

Android’s game mode feature indicates how the user wants to optimize your application. It enables users to say whether they want your application to run normally, optimize for battery life, or optimize for best performance.

Requirements and compatibility

Android’s game mode feature requires Android version 13.

Use game mode in Unity

Unity provides the AndroidGame.GameMode property that you can use to retrieve the current game mode for your application.

Depending on the current game mode, you should adapt your Unity application to accommodate the user’s preference. For example, if the game mode is battery saving, the user expects your application to run for as long as possible. In this case, you should reduce the resource intensity of effects and calculations to reduce the impact your application has on the device’s battery life. This includes things like:

  • Decrease the frame rate or resolution of the application.
  • Reduce the LODThe Level Of Detail (LOD) technique is an optimization that reduces the number of triangles that Unity has to render for a GameObject when its distance from the Camera increases. More info
    See in Glossary
    bias to make Unity display lower detail LODs closer to the cameraA component which creates an image of a particular viewpoint in your scene. The output is either drawn to the screen or captured as a texture. More info
    See in Glossary
    .
  • Reduce the cull distance of particular layers.
  • Reduce or possible batch network calls and/or sensor usage.

If the game mode is set to maximize performance, the user expects your application to look and play as well as possible. In this case, you can enable more effects and not be as wary of battery consumption.

Tip: If your application is resource intensive and you want to enhance its overall performance, consider the Adaptive Performance package. It provides feedback about the thermal and power state of a mobile device and enables you to react appropriately to prevent thermal throttling or excessive battery consumption.

Game state hinting
Large screen and foldable device support
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961