Version: Unity 6 Preview (6000.0)
LanguageEnglish
  • C#

AndroidGame.SetGameState

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public static void SetGameState(bool isLoading, Android.AndroidGameState gameState);

Declaration

public static void SetGameState(bool isLoading, Android.AndroidGameState gameState, int label, int quality);

Parameters

isLoading Whether the game is in the loading state.
gameState AndroidGameState state.
label Developer supplied custom value, e.g. for the current level.
quality Developer supplied custom value, e.g. for the current quality level.

Description

Calls setGameState() in the Android application to specify the loading status. Requires API level 33 (Android 13).

When target device does not support the required API level, no action is taken.