I'm getting this error while making the build. The build is done successfully though.
MissingReferenceException: The object of type 'PlayMakerFSM' has been destroyed but you are still trying to access it.
Your script should either check if it is null or you should not destroy the object.
UnityEngine.Component.GetComponent[T] () (at C:/buildslave/unity/build/Runtime/Export/Component.bindings.cs:42)
HutongGames.PlayMaker.FsmProcessor.AddUiEventHandler[T] (PlayMakerFSM fsm) (at Assets/PlayMaker/FsmProcessor.cs:63)
HutongGames.PlayMaker.FsmProcessor.HandleUiEvent[T] (PlayMakerFSM fsm, HutongGames.PlayMaker.UiEvents uiEvent) (at Assets/PlayMaker/FsmProcessor.cs:57)
HutongGames.PlayMaker.FsmProcessor.OnPreprocess (PlayMakerFSM fsm) (at Assets/PlayMaker/FsmProcessor.cs:38)
PlayMakerFSM.AddEventHandlerComponents () (at C:/Projects/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/PlayMakerFSM.cs:425)
PlayMakerFSM.Preprocess () (at C:/Projects/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/PlayMakerFSM.cs:225)
HutongGames.PlayMakerEditor.PlayMakerBuildCallbacks.OnPostprocessScene () (at Assets/PlayMaker/Editor/PlayMakerBuildCallbacks.cs:57)
System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <ac823e2bb42b41bda67924a45a0173c3>:0)
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <ac823e2bb42b41bda67924a45a0173c3>:0)
System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at <ac823e2bb42b41bda67924a45a0173c3>:0)
UnityEditor.Build.BuildPipelineInterfaces+AttributeCallbackWrapper.OnProcessScene (UnityEngine.SceneManagement.Scene scene, UnityEditor.Build.Reporting.BuildReport report) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildPipelineInterfaces.cs:163)
UnityEditor.Build.BuildPipelineInterfaces+<OnSceneProcess>c__AnonStorey1.<>m__1 (UnityEditor.Build.IProcessSceneWithReport spp) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildPipelineInterfaces.cs:387)
UnityEditor.Build.BuildPipelineInterfaces.InvokeCallbackInterfacesPair[T1,T2] (System.Collections.Generic.List`1[T] oneInterfaces, System.Action`1[T] invocationOne, System.Collections.Generic.List`1[T] twoInterfaces, System.Action`1[T] invocationTwo, System.Boolean exitOnFailure) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildPipelineInterfaces.cs:356)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
I'm trying to figure out whether this is due to an FSM that is attached to an instanciated gameObject that is not controlled by Playmaker, but for another addon, which may destroy it before the FSM runs. But even disabling the FSM I still get the error, which is what confuses me and makes me think that this might not be the cause of the error.
Running Unity 2018.3.0f2 & Playmaker 1.9.0