ドキュメント

Unity Engine


User Manual

Script Reference

Unity Engine


EnteredPlayMode

Occurs during the next update of the Editor application if it is in play mode and was previously in edit mode.
読み終わるまでの所要時間 1 分最終更新 15時間前

Definition

  • Type: Field
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
EnteredPlayMode = 2

Remarks

Because this event is synchronized with the Editor application's update loop, it might occur after the game's update loop has already executed one or more times.
For new code, use OnEnteringPlayModeAttribute instead to avoid unnecessary event subscription handling. For more information, refer to Code reload and the code lifecycle in the manual.