Hi. I’ve created an SO that logs something on OnEnable
, but the problem is that it seems it won’t get called on editor startup, that is, when I open up Unity Editor. It does work on domain reload (when editing scripts or entering playmode with EnterPlayModeOptions.None
is set)
Is this the supposed way? or is there something wrong. I’m using Unity 2021.2.13f1
take this script as an example:
class SO : ScriptableObject {
void OnEnable() => Debug.Log( "Enabled" );
}
thanks