I just stumbled upon this undocumented method that is part of Monobehavior (that’s my guess). What is the purpose of this function? It runs twice. I accidentally stumbled upon it because I created a function with the same name.
Interesting! It’s like you found a programming easter egg!
… I will actually not respond to that. ![]()
When you press PLAY, Unity tears down the entire scene, then spins up a fresh copy, and that certainly involves calls to OnEnable, OnDisable, etc., and probably also involves calls to something like DisableRoot() before the object is destroyed. Maybe there’s a DestroyRoot too!
1 Like