- Home /
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).
Answer by Fattie · Oct 31, 2012 at 09:33 PM
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
HEH!
I can't believe they don't fix that .. :)
I've got to figure Bunny's "Let me google that for you..." link :)
Your answer
Follow this Question
Related Questions
How to reinstall the authorised Unity to a new PC when the original PC was broken? 1 Answer
Dual Timer Problems 1 Answer
Can't reactivate Unity 1 Answer
Problem activating 1 Answer
Activate a Object 1 Answer