Why does Unity provide “enable switching” to a script when it enters the Editor folder?

I have a monobehaviour class that I use in UnityEditor. It looks like this: enter image description here

When I put it in the Editor folder, the inspector changes to this: enter image description here

Why is this happening and what does it mean?

+4
source share
1 answer

The checkbox for enabling exclusive script behavior means that it contains the Start or Refresh methods. You can prevent unity from calling these methods by disabling this check box. If your script does not contain any of these methods, the checkbox goes out.

script - . "" "", .

+6

Source: https://habr.com/ru/post/1663820/


All Articles