기술 자료

Unity Engine


User Manual

Script Reference

Unity Engine


isBuildingPlayer

Is a player currently being built?
읽는 시간 1분최근 업데이트: 한 달 전

Definition

  • Type: Property
  • Namespace: UnityEditor
  • Assembly: UnityEditor
public static bool isBuildingPlayer { get; }

Remarks

This returns true during Player builds and AssetBundle builds.
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.