Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice
  4. Dismiss Notice

TypeLoadException: Could not load... Inspector does not show

Discussion in 'Editor & General Support' started by leegod, Nov 4, 2020.

  1. leegod

    leegod

    Joined:
    May 5, 2010
    Posts:
    2,343
    Worked well project until yesterday, open again just before,

    and when I click some gameobject in scene, inspector does not shows and all bunch of this errors continuously repeated.

    ---------
    TypeLoadException: Could not load type UnityEngine.Analytics.AnalyticsEventTracker, Unity.Analytics.Tracker, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null while decoding custom attribute: (null)
    System.MonoCustomAttrs.GetCustomAttributesBase (System.Reflection.ICustomAttributeProvider obj, System.Type attributeType, System.Boolean inheritedOnly) (at <9577ac7a62ef43179789031239ba8798>:0)
    System.MonoCustomAttrs.GetCustomAttributes (System.Reflection.ICustomAttributeProvider obj, System.Type attributeType, System.Boolean inherit) (at <9577ac7a62ef43179789031239ba8798>:0)
    System.RuntimeType.GetCustomAttributes (System.Type attributeType, System.Boolean inherit) (at <9577ac7a62ef43179789031239ba8798>:0)
    UnityEditor.CustomEditorAttributes.Rebuild () (at <282860f440ac4f48a82a3a8aaaec3082>:0)
    UnityEditor.CustomEditorAttributes.FindCustomEditorTypeByType (System.Type type, System.Boolean multiEdit) (at <282860f440ac4f48a82a3a8aaaec3082>:0)
    UnityEditor.CustomEditorAttributes.FindCustomEditorType (UnityEngine.Object o, System.Boolean multiEdit) (at <282860f440ac4f48a82a3a8aaaec3082>:0)
    UnityEditor.PropertyEditor.IsMultiEditingSupported (UnityEditor.Editor editor, UnityEngine.Object target) (at <282860f440ac4f48a82a3a8aaaec3082>:0)
    UnityEditor.UIElements.EditorElement.HeaderOnGUI () (at <282860f440ac4f48a82a3a8aaaec3082>:0)
    UnityEngine.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt, UnityEngine.Matrix4x4 parentTransform, UnityEngine.Rect clippingRect, System.Boolean isComputingLayout, UnityEngine.Rect layoutSize, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <e11cddb636f444f68eec62123764f018>:0)
    UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, UnityEngine.Matrix4x4 worldTransform, UnityEngine.Rect clippingRect, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <e11cddb636f444f68eec62123764f018>:0)
    UnityEngine.UIElements.IMGUIContainer.DoIMGUIRepaint () (at <e11cddb636f444f68eec62123764f018>:0)
    UnityEngine.UIElements.UIR.RenderChainCommand.ExecuteNonDrawMesh (UnityEngine.UIElements.UIR.DrawParams drawParams, System.Single pixelsPerPoint, System.Exception& immediateException) (at <e11cddb636f444f68eec62123764f018>:0)
    Rethrow as ImmediateModeException
    UnityEngine.UIElements.UIR.RenderChain.Render () (at <e11cddb636f444f68eec62123764f018>:0)
    UnityEngine.UIElements.UIRRepaintUpdater.Update () (at <e11cddb636f444f68eec62123764f018>:0)
    UnityEngine.UIElements.VisualTreeUpdater.UpdateVisualTreePhase (UnityEngine.UIElements.VisualTreeUpdatePhase phase) (at <e11cddb636f444f68eec62123764f018>:0)
    UnityEngine.UIElements.Panel.UpdateForRepaint () (at <e11cddb636f444f68eec62123764f018>:0)
    UnityEngine.UIElements.Panel.Repaint (UnityEngine.Event e) (at <e11cddb636f444f68eec62123764f018>:0)
    UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at <e11cddb636f444f68eec62123764f018>:0)
    UnityEngine.UIElements.UIElementsUtility.UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& eventHandled) (at <e11cddb636f444f68eec62123764f018>:0)
    UnityEngine.UIElements.UIEventRegistration.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at <e11cddb636f444f68eec62123764f018>:0)
    UnityEngine.UIElements.UIEventRegistration+<>c.<.cctor>b__1_2 (System.Int32 i, System.IntPtr ptr) (at <e11cddb636f444f68eec62123764f018>:0)
    UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& result) (at <2500dd078a544a69b6c923861af6cd15>:0)
     
  2. leegod

    leegod

    Joined:
    May 5, 2010
    Posts:
    2,343
    so reimport all and its gone.
     
  3. leegod

    leegod

    Joined:
    May 5, 2010
    Posts:
    2,343
    but I just open unity and do nothing for 1-2 days for waiting project folder files re-sync of synology drive (cloud) app,

    it happens again.

    and reimport all, error gone.

    So this seems it will repeated in the future. But I don't know why originally this happen..
     
  4. wagenheimer

    wagenheimer

    Joined:
    Jun 1, 2018
    Posts:
    319
    I'm facing the same problem. I have a project that is working fine on Windows, but when I try to open it on Unity for Mac I got tons of errors. I could not even show the Services or Package Manager Window.

    System.TypeLoadException: Could not resolve type with token 01000036 (from typeref, class/assembly Google.EditorInitializer, Google.VersionHandlerImpl, Version=1.2.0.0, Culture=neutral, PublicKeyToken=null)
    UnityEditor.EditorAssemblies:processInitializeOnLoadAttributes(Type[]) (at /Users/bokken/buildslave/unity/build/Editor/Mono/EditorAssemblies.cs:118)
     
  5. hossenshovon1

    hossenshovon1

    Joined:
    Apr 20, 2018
    Posts:
    3
    For me, It was indicated that there was a script causing it. So I just open that script and take a new line on it (empty) and save the script, it solved the issue for me.
    But I noticed all script references are missing. So I open another scene, and then get back to the previous scene, Not all is ok. I think it happened because of not saving the files properly. Because suddenly electricity of my house was off. And That occurred this problem.