Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


runInEditMode

Allow a specific instance of a MonoBehaviour to run in edit mode (only available in the editor).
Read time 1 minuteLast updated 10 days ago

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public bool runInEditMode { get; set; }

Remarks

By default, script components are only executed in play mode. By setting this property, the MonoBehaviour will have its callback functions executed while the Editor is not in playmode.