In a specific project inspector suddenly broke and whenever I have enough components for the inspector window to require scrolling, the layout gets all messed up.
I have not added or modified any scripts. And the inspector just stopped working. Or in other words it between it working and not working, no script was added or modified.
It works in other projects opened with the same unity version.
No specific component breaks it, I tried a combination of random components and it breaks all the time.
I get no errors in the console.
I tried restarting PC and Unity, and it didn’t help.
I tried restoring the window layout to default.
idk what caused it, it started happening to me a couple of days ago, I finally managed to fix it by:
Closing Unity
Back up the “Library” folder inside your project
Delete it
Load your project and wait for it to generate the folder again
4.2) It’ll show a lot of nullException errors in the console and the scene and game windows will apear empty, don’t worry
Close Unity
Paste the backed up Library folder inside your project and replace everything when it asks
Load your project again, and everything will be fixed, no errors, all the windows normal again, and the inspector has a scrool bar again!, everything is fixed.
Hope this helps someone that sees this in the future, I had been very annoyed with this bug.