How in the world do you fix this?
Seems like it’s something to do with me using [SerializeField].
It also suddenly started to pause the editor because of the error for some reason
I went through every single prefab script and noticed some scripts missing. I deleted them one by one from the prefabs and that MIGHT have helped.
But since there’s no proper way to debug this I have no idea if that really helps anything.
I only try hit the “window > layouts > default”, save, and quit Unity and pray shaman lords that this would work.
since the “stable” version was causing problems I switched to 2022.2.18 and just hoping it works.
Sorry for the negativity… It’s just that I’ve been using Unity for almost 20 years now and 2019 might have been the most stable version so far, but was not supporting mobile apk so had to make a leap forward… and getting pestered by bugs. I’m restarting Unity like 10 times a day.
This is starting to become such a burden to use
The problem is not “start a new project and give us steps to reproduce”. The problem is that Unity does something in the background, some error occurs and there is no way to debug this information. I’m guessing its their renewed prefab system but at least if it would tell “which game object/resource was causing problem with the serialized parentproperty”, there would be a way to debug, possibly fix and make better reports.
It certainly seems that UIToolkit isn’t ready for prime time yet.
Even the official docs say this:
“UI Toolkit is in active development. This page will update frequently as the feature set evolves.”
I have to ship games and I cannot be an unpaid QA tester for someone else’s software, so UnityEngine.UI is always my current solution until I hear that UIToolkit does 100% of what UGUI does and does it perfectly.
I have spotted that the problem arrives when I select a GameObject and values are displayed in the Inspector.
I have to select the GameObject to fine-tune many serialized fields I have assigned to it from the script. This issue makes the development of the game impossible for me…
I have similar issues then @ghelee reports but with me it’s exclusively when highlighting the instance of my scriptableObject to be shown in the inspector before i start the game.
My workaround is to click on sth else at game start and then click on the ScriptableObject instance after the game started.
I am getting very tired of this particular issue and have submitted a bug, I bet if everyone that has this problem and submits a bug, maybe, just maybe Unity might finally have to resolve this issue and send out an update. I have to close and restart the editor all the time. It really shouldn’t matter what my layout is. This should not happen as it is an EDITOR INTERNAL MATTER.
In my experience, this happens when an object is selected and the game exits playmode and that object has serialized fields exposed in the inspector. This is especially dangerous for your console window if you have secondary inspector windows open and locked somewhere in your project workspace.
Solutions that may help:
Set serialized field things in the inspector to “[HideInInspector]” as it’s the reloading of these exposed serialized properties that seems to be throwing out the errors after exiting playmode.
Set your workspace to default:
Set the asset you work with all the time to a hotkey (control + alt +1) I believe, and something else (control + alt + 2). When you exit playmode, shift selection between the two assets (control + shift + 2 and 1). I highly recommend adjusting your hotkeys settings so you can select and set with just the # keys and shift as these features are fantastic for fast prototyping once you get used to using them (requires remapping 2d mode and a couple other things)
If I had to guess i’d say this might all be related to the DOTS and ECS stuff and domain reload, but I’m no C# scientist so I really don’t know what’s going on. I just know that in a fit of rage at all the error messages I hid literally every variable in every core script and i’ve been slowly exposing them over time.