Version: 2017.1
Method group is Obsolete

Application.isLoadingLevel

切换到手册
Obsolete public static bool isLoadingLevel ;

描述

Is some level being loaded? (Read Only)

LoadLevelLoadLevelAdditive 不会立即发生 - 当前游戏帧结束后 加载新关卡。如果此帧已请求关卡加载,则 isLoadingLevel 返回 /true/。

另请参阅:LoadLevelLoadLevelAdditive

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { void Example() { print(Application.isLoadingLevel); } }