0
Fixed

Missing method GetCorrespondingObjectFromSource

Poinball 9 months ago updated by Lazlo Bonin (Lead Developer) 6 months ago 5

I got couple of error in my console when I select any of my prefab in the Hierarchy.

MissingMethodException: Method not found: 'UnityEditor.PrefabUtility.GetCorrespondingObjectFromSource'.

Bolt Version:
1.4.1
Unity Version:
2018.3.3f1
Platform(s):
Scripting Backend:
.NET Version (API Compatibility Level):
GOOD, I'M SATISFIED
Satisfaction mark by Poinball 6 months ago
Pending Review

Hi Poinball,

 Two things:

  1. Can you paste the full stack trace of the errors?
  2. When importing Bolt, did you run the Unity API Updater tool? It should catch those cases.

What is the API Updater tool ? if its the Plugin Update Wizard, Yes i'm up to date.

Here is the Full stack : 

MissingMethodException: Method not found: 'UnityEditor.PrefabUtility.GetCorrespondingObjectFromSource'.

Bolt.VariablesPanel.Object (UnityEngine.GameObject object) (at C:/Users/lazlo/Projects/Bolt1/Package/Bolt.Core/Editor/Variables/VariablesPanel.cs:194)

Bolt.VariablesPanel..ctor (IGraphContext context) (at C:/Users/lazlo/Projects/Bolt1/Package/Bolt.Core/Editor/Variables/VariablesPanel.cs:39)

Bolt.FlowGraphContext+d__3.MoveNext () (at C:/Users/lazlo/Projects/Bolt1/Package/Bolt.Flow/Editor/FlowGraphContext.cs:16)

System.Collections.Generic.List`1[Ludiq.ISidebarPanelContent].AddEnumerable (IEnumerable`1 enumerable) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Collections.Generic/List.cs:128)

System.Collections.Generic.List`1[Ludiq.ISidebarPanelContent]..ctor (IEnumerable`1 collection) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Collections.Generic/List.cs:65)

System.Linq.Enumerable.ToList[ISidebarPanelContent] (IEnumerable`1 source)

Ludiq.GraphContext`2[TGraph,TCanvas]..ctor (Ludiq.GraphReference reference)

Bolt.FlowGraphContext..ctor (Ludiq.GraphReference reference) (at C:/Users/lazlo/Projects/Bolt1/Package/Bolt.Flow/Editor/FlowGraphContext.cs:9)

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.Reflection.ConstructorInfo.Invoke (System.Object[] parameters) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/ConstructorInfo.cs:77)

Ludiq.TypeUtility+<>c__DisplayClass8_0.b__1 (System.Object[] args) (at C:/Users/lazlo/Projects/Bolt1/Package/Ludiq.Core/Runtime/Reflection/TypeUtility.cs:125)

Ludiq.TypeUtility.Instantiate (System.Type type, Boolean nonPublic, System.Object[] args) (at C:/Users/lazlo/Projects/Bolt1/Package/Ludiq.Core/Runtime/Reflection/TypeUtility.cs:154)

Ludiq.SingleDecoratorProvider`3[TDecorated,TDecorator,TAttribute].CreateDecorator (System.Type decoratorType, .TDecorated decorated) (at C:/Users/lazlo/Projects/Bolt1/Package/Ludiq.Core/Editor/Interface/EventWrapper.cs:210)

Ludiq.SingleDecoratorProvider`3[TDecorated,TDecorator,TAttribute].CreateDecorator (.TDecorated decorated) (at C:/Users/lazlo/Projects/Bolt1/Package/Ludiq.Core/Editor/Interface/EventWrapper.cs:211)

Ludiq.SingleDecoratorProvider`3[TDecorated,TDecorator,TAttribute].GetDecorator (.TDecorated decorated)

Ludiq.XGraphContextProvider.Context (Ludiq.GraphReference reference)

Ludiq.GraphWindow.set_reference (Ludiq.GraphReference value)

Ludiq.GraphWindow.b__54_0 ()

Ludiq.PluginContainer.add_delayCall (System.Action value) (at C:/Users/lazlo/Projects/Bolt1/Package/Ludiq.Core/Editor/Dependencies/SQLite/SQLite.cs:1706)

Ludiq.GraphWindow.OnEnable ()

Hi Poinball,

Thanks for the report, I found the source of the issue and will fix it for v.1.4.2!