Is it possible for an object to detect its own re-activation?

I deactivate parts of my level while the player isn’t there for performance reasons, and I want to be able to ‘turn on’ the lights of those sections with a fade effect instead of them just flashing on when the player gets near.

I’m not worried about the fade-in code, just the detection of reactivation (or deactivation).

for sure it’s, um, OnEnable() right?

/Documentation/ScriptReference/MonoBehaviour.OnEnable.html

this is the only page

/Documentation/ScriptReference/MonoBehaviour.html

you’ll sort of “discover” stuff like that