Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


isBuildingPlayer

Is a player currently being built?
Read time 1 minuteLast updated 12 days ago

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.