ScriptableObject.OnEnable

function OnEnable () : void

Description

This function is called when the object is loaded

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

OnEnable cannot be a co-routine.