ScriptableObject.OnEnable Manual     Reference     Scripting  
Scripting > Runtime Classes > ScriptableObject
ScriptableObject.OnEnable

function OnEnable () : void

Description

This function is called when the object is loaded

function OnEnable ()
{
print("script was enabled");
}

OnEnable cannot be a co-routine.