Version: 2023.2
Language : English
Optimize application startup times
Optimize for user preferences

Game state hinting

Android’s game state feature indicates to the operating system whether your application is in a loading state and also whether Android can interrupt the application. Depending on the state of the application, Android can perform certain optimizations. For example, if the application is in a loading state, the operating system can provide more resources to the application to help optimize the load process. However, whether the operating system does this depends on various other factors and settings, so you can’t guarantee that this will always happen.

Requirements and compatibility

Android’s game state feature requires Android version 13.

Game state hinting in Unity

Unity provides the AndroidGame.SetGameState method that you can use to indicate to Android the current game state of your application. It’s best practice to call this method when your application transitions to or from a loading state to make sure the operating system is aware of the state of your application.

Optimize application startup times
Optimize for user preferences
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961