4

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

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

Why this happening and what does it mean ?

1 Answer 1

7

The enabling checkbox for a mono behaviour script means that it contains 'Start' or 'Update' methods. You can prevent unity from calling these methods by disabling the checkbox. If your script does not contain either of these methods then the checkbox disappears.

However for an editor script it is somehow different. Editor classes don't work with 'Start' and 'Update' so the checkbox appears there.

Sign up to request clarification or add additional context in comments.

2 Comments

Thank you! Got it!
@VladislavHromyh Hi, you can absolutely accept answer if it solved your problem. See here for how to do that.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.