Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SetGameState

Calls setGameState() in the Android application to specify the loading status. Requires API level 33 (Android 13).
Read time 1 minuteLast updated 6 days ago

Definition

SetGameState(bool, AndroidGameState)

Calls setGameState() in the Android application to specify the loading status. Requires API level 33 (Android 13).
public static void SetGameState(bool isLoading, AndroidGameState gameState)

Parameters

isLoading

Whether the game is in the loading state.

Remarks

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

SetGameState(bool, AndroidGameState, int, int)

Calls setGameState() in the Android application to specify the loading status. Requires API level 33 (Android 13).
public static void SetGameState(bool isLoading, AndroidGameState gameState, int label, int quality)

Parameters

isLoading

Whether the game is in the loading state.


label

Developer supplied custom value, e.g. for the current level.

quality

Developer supplied custom value, e.g. for the current quality level.

Remarks

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