Why is some of the scripts not possible to disable in editor?

Some, not all, of my scripts (C#) is not possible to disable in the editor, why is that?

2258389--150980--Skärmavbild 2015-08-19 kl. 20.43.55.png

Scripts that don’t have a void Start() function can’t be disabled

1 Like

ahhh thanks a lot!

Wait, what. I never heard of this before…

Oh, I just found out that unity does not show disable button when nothing can be disabled. Unity can disable Start, Update, FixedUpdate, OnGUI methods.

Enabled Behaviours are Updated, disabled Behaviours are not.

2 Likes

Yup. Disabled is a weird one sometimes. It doesn’t stoop you from using the script in other scripts. It just stops Unity making automatic calls on it.

1 Like