- Home /
Is There a List of MonoBehaviour Messages That Are Still Called When Disabled?
Is There a List of MonoBehaviour Messages That Are Still Called When Disabled?
Answer by meat5000 · Dec 08, 2017 at 10:48 AM
Yes, but I'm not sure where they are.
https://answers.unity.com/questions/1035472/call-a-public-function-of-a-disabled-monobehaviour.html
Maybe its in here
https://docs.unity3d.com/ScriptReference/MonoBehaviour.html
Its 'everything but' whats listed I do believe.
Ha ha, thanks @meat5000 !
Yeah, I was there and it does show a list of methods that expose the enabled checkbox in editor but it doesn't say whether or not any other functions are called when it is disabled. Perhaps I'm not understanding what the developers are implying but honestly, these are documents and there should be more clarity.
When disabled ONLY the behaviours listed are disabled and EVERYTHING ELSE remains functional, I do believe. You can still interact with the script and callbacks will still work, etc. You $$anonymous$$AY POSSIBLY even be able to manually invoke Update() if you so desired.
Disabling a script, basically, means that the listed $$anonymous$$onoBehaviours are not Updated. The rest of the script will function. You can test this with a simple script.
Not knowing this is what messes people up when they go down the path of disabling/enabling scripts.
Your answer
Follow this Question
Related Questions
Get List of Signatures of Messages to Monobehaviour 1 Answer
Disabling GameObject doesn't disable components 0 Answers
C# Creating my own custom Unity Messages 2 Answers
Disable all scripts on gameobject excluding the one calling for disable 2 Answers
Which Monobehaviour messages get called in the inspector (scene not playing)? 0 Answers