isBuildingPlayer
Returns true when Unity is actively building a Player or AssetBundles
읽는 시간 1분최근 업데이트: 한 달 전
Definition
- Type: Property
- Namespace: UnityEditor
- Assembly: UnityEditor.CoreModule
public static bool isBuildingPlayer { get; }
Remarks
This returns true during Player builds (BuildPipeline.BuildPlayer) and AssetBundle builds (BuildPipeline.BuildAssetBundles). It can be used to check the context inside script code that could be triggered during a build, for example when ExecuteAlways is being used on a MonoBehaviour.