- Home /
Why do I not have a static checkbox?
This is probably a very beginner question, but I can't figure out why my inspector looks different than everyone else's. All I want to do is mark an object as static, but the checkbox that appears in all the tutorials isn't in mine. This is what mine shows:
Your inspector might be in debug mode. Switch back to normal mode.
$$anonymous$$y inspector is in normal mode. The static checkbox does not appear in either normal mode or debug mode, unlike in yours where it appears in both.
Do you have any custom editor scripts in your project? (look for a file containing [CustomEditor(typeof(Transform))]
or [CustomEditor(typeof(GameObject))]
)
Have you tried resetting the layout?
Answer by st_one50 · Jan 27, 2021 at 10:14 PM
AH! You're absolutely right. One of my custom editor scripts was the culprit. I changed
[CustomEditor(typeof(GameObject))]
to
[CustomEditor(typeof(MyCustomClass))]
Your answer
Follow this Question
Related Questions
Can I use strings with static variables? 2 Answers
What static settings are allowed for moving 2D sprites? 0 Answers
Static Array 2 Answers
Inspector questions(lock,static). 1 Answer