Search Unity

Feedback ScriptableObject life-cycle in the Editor

Discussion in 'Editor & General Support' started by tbg10101_, Mar 26, 2020.

  1. tbg10101_

    tbg10101_

    Joined:
    Mar 13, 2011
    Posts:
    192
    In the Player the ScriptableObject's Awake method is called when the application starts. However, in the Editor the Awake method is only called when the ScriptableObject is initially created.

    This creates an inconsistent experience for me trying to iterate on my game in the Editor. If I have any initialization logic there then it will essentially only be executed in the Player, making the Awake method useless since most of my time is spent in the Editor.

    My request is to have the Awake method be called whenever the editor goes into play mode so that the initialization is the same in the Player and play mode in the Editor.
     
    mateomogar likes this.