Unity 2018.3.0f2 - MissingMethodException: Method not found: 'UnityEditor.PrefabUtility.GetCorrespondingObjectFromSource'.

Issue #477 resolved
mu created an issue

Hello,

Here is an error we have on our project, after updating on 2018.3.0f2. Odin v2.0.13 This error pops when we try to modify a prefab.

MissingMethodException: Method not found: 'UnityEditor.PrefabUtility.GetCorrespondingObjectFromSource'. Sirenix.OdinInspector.Editor.PrefabModificationHandler.GetPrefabModificationType (Sirenix.OdinInspector.Editor.InspectorProperty property, Boolean forceAutoRegister) (at D:/Repositories/SirenixFramework/Sirenix Solution/Sirenix.OdinInspector.Editor/Core/Resolvers/Locators/DefaultOdinAttributeProcessorLocator.cs:32) Sirenix.OdinInspector.Editor.InspectorProperty.Update (Boolean forceUpdate) Sirenix.OdinInspector.Editor.PropertyChildren.Get (Int32 index) (at D:/Repositories/SirenixFramework/Sirenix Solution/Sirenix.OdinInspector.Editor/Windows/StaticInspectorWindow.cs:288) Sirenix.OdinInspector.Editor.PropertyChildren.get_Item (Int32 index) (at D:/Repositories/SirenixFramework/Sirenix Solution/Sirenix.OdinInspector.Editor/Windows/StaticInspectorWindow.cs:146) Sirenix.OdinInspector.Editor.PropertyTree1[WaveFactory].TryFindChildMemberPropertyWithNameFromGroups (System.String name, Sirenix.OdinInspector.Editor.InspectorProperty property) (at D:/Repositories/SirenixFramework/Sirenix Solution/Sirenix.OdinInspector.Editor/Drawers/Value Drawers/TableListAttributeDrawer.cs:111) Sirenix.OdinInspector.Editor.PropertyTree1[WaveFactory].GetPropertyAtUnityPath (System.String path) (at D:/Repositories/SirenixFramework/Sirenix Solution/Sirenix.OdinInspector.Editor/Drawers/Value Drawers/TableListAttributeDrawer.cs:47) Sirenix.OdinInspector.Editor.PrefabModificationHandler.Update () (at D:/Repositories/SirenixFramework/Sirenix Solution/Sirenix.OdinInspector.Editor/Core/PrefabModificationHandler.cs:1561) Sirenix.OdinInspector.Editor.PropertyTree`1[WaveFactory]..ctor (.WaveFactory[] targets, UnityEditor.SerializedObject serializedObject) System.Reflection.MonoCMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:513) Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation. System.Reflection.MonoCMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:519) System.Reflection.MonoCMethod.Invoke (BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:528) System.Activator.CreateInstance (System.Type type, BindingFlags bindingAttr, System.Reflection.Binder binder, System.Object[] args, System.Globalization.CultureInfo culture, System.Object[] activationAttributes) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System/Activator.cs:338) System.Activator.CreateInstance (System.Type type, System.Object[] args, System.Object[] activationAttributes) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System/Activator.cs:268) System.Activator.CreateInstance (System.Type type, System.Object[] args) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System/Activator.cs:263) Sirenix.OdinInspector.Editor.PropertyTree.Create (IList targets, UnityEditor.SerializedObject serializedObject) Sirenix.OdinInspector.Editor.PropertyTree.Create (UnityEditor.SerializedObject serializedObject) Sirenix.OdinInspector.Editor.OdinEditor.get_Tree () (at D:/Repositories/SirenixFramework/Sirenix Solution/Sirenix.OdinInspector.Editor/Core/Value Entries/PropertyValueEntry.cs:154) Sirenix.OdinInspector.Editor.OdinEditor.DrawOdinInspector () (at D:/Repositories/SirenixFramework/Sirenix Solution/Sirenix.OdinInspector.Editor/Core/Value Entries/PropertyValueEntry.cs:201) Sirenix.OdinInspector.Editor.OdinEditor.OnInspectorGUI () UnityEditor.InspectorWindow.DoOnInspectorGUI (Boolean rebuildOptimizedGUIBlock, UnityEditor.Editor editor, Boolean wasVisible, UnityEngine.Rect& contentRect) (at C:/buildslave/unity/build/Editor/Mono/Inspector/InspectorWindow.cs:1625) UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

Comments (1)

  1. Tor Esa Vestergaard

    Please reimport Odin, to trigger Unity's API upgrader on the Odin DLLs - that should solve this issue.

  2. Log in to comment