文档

Unity Engine

Unity Engine

SetGameState

Calls setGameState() in the Android application to specify the loading status. Requires API level 33 (Android 13).
阅读时间1 分钟最后更新于 1 个月前

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.