runInEditMode
Allow a specific instance of a MonoBehaviour to run in edit mode (only available in the editor).
読み終わるまでの所要時間 1 分最終更新 1ヶ月前
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.
See Also: ExecuteInEditMode.