文档

Unity Engine

Unity Engine

runInEditMode

Allow a specific instance of a MonoBehaviour to run in edit mode (only available in the editor).
阅读时间1 分钟最后更新于 2 天前

Definition

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.