Question:There are no any specific lines of any script in the errors. I tried to add animation to my character then deleted the animation and removed it from the animator controller and the errors happens.
I deleted everything from the hierarchy also in the assets deleted any packages assets i installed. and still the errors show.
I have this errors also in another project, started yesterday.
I’m using unity 2021.3.2f1 Personal
Each error show twice the same :
SerializedObjectNotCreatableException: Object at index 0 is null UnityEditor.Editor.CreateSerializedObject () (at :0) UnityEditor.Editor.GetSerializedObjectInternal () (at :0) UnityEditor.Editor.get_serializedObject () (at :0) UnityEditor.BaseAssetImporterTabUI.get_serializedObject () (at :0) UnityEditor.ModelImporterClipEditor.UnregisterListeners () (at :0) UnityEditor.ModelImporterClipEditor.OnDisable () (at :0) UnityEditor.ModelImporterEditor.OnDisable () (at :0)
InvalidCastException: Specified cast is not valid. UnityEditor.AssetImporters.AssetImporterEditor.InitializePostprocessors () (at :0) UnityEditor.AssetImporters.AssetImporterEditor.OnEnable () (at :0) UnityEditor.AssetImporterTabbedEditor.OnEnable () (at :0) UnityEditor.ModelImporterEditor.OnEnable () (at :0)
Answer:Sometimes this happens if you have a second Inspector window open in Unity!
Try closing every Inspector window you can find. (It may be hiding somewhere weird.) Make sure the little lock icon in the top right is “unlocked.”
You can also reset your layout to factory settings through the Window menu, if you’re comfortable doing so.
After that, close all instances of Unity and re-open one of them. (For me it’s
Revert Factory Settings...)
If the error is fixed, then you can get the Inspector back by going to
EDIT: Looking more closely, I see that the errors are referencing the Unity Asset Importer and the Model Importer. That makes me think even more that the window that looks like this (or something related to it) is bugging out:
If you have better answer, please add a comment about this, thank you!