Hey guys, this is my first time posting here and I was hoping that someone here has a potential fix.
My issue: Pro Builder is causing extremely long loading times within unity.
I have first encountered this issue after I restarted my pc, it took forever to load unity (Like a solid 20 mins, it normally takes about 3 - 5, going into play mode takes ~5 mins, normally about 10 - 15 seconds, exiting play mode, ~3 mins, normally nearly instantly) and keep in mind that the project files are only ~2GB in size and I have a good pc (i7-7000 @ 4GHz, 32 GB RAM, 1 TB HDD (that is where the project is stored). Before I restarted my pc it had the normal loading times.
After some long painful troubleshooting, I figured out that Pro Builder is the thing that is causing the issue. I’m also using the latest version of Pro Builder and Unity 2020.1.5f1.
I know that there is something behind the scenes of Pro Builder that is causing this, just don’t know what. Please help me or steer me in the right direction, I can barely work on this major project of mine! Thank you for the help!
Ok, I’ve done some more Troubleshooting and after some time Unity is now throwing me this error:
NullReferenceException: Object reference not set to an instance of an object UnityEditor.ProBuilder.EditorHandleDrawing.SetMaterialsScaleAttribute () (at C:/Users/bjsea/UnityGames/TornApart/Library/PackageCache/com.unity.probuilder@4.4.0/Editor/EditorCore/EditorHandleDrawing.cs:420) UnityEditor.ProBuilder.EditorHandleDrawing.DrawSceneHandles (UnityEngine.ProBuilder.SelectMode mode) (at C:/Users/bjsea/UnityGames/TornApart/Library/PackageCache/com.unity.probuilder@4.4.0/Editor/EditorCore/EditorHandleDrawing.cs:272) UnityEditor.ProBuilder.ProBuilderEditor.OnSceneGUI (UnityEditor.SceneView sceneView) (at C:/Users/bjsea/UnityGames/TornApart/Library/PackageCache/com.unity.probuilder@4.4.0/Editor/EditorCore/ProBuilderEditor.cs:584)
[10:06 PM]
UnityEditor.SceneView.CallOnSceneGUI () (at <6d0b5326886a4f0e8ed4ea356b37330b>:0) UnityEditor.SceneView.HandleSelectionAndOnSceneGUI () (at <6d0b5326886a4f0e8ed4ea356b37330b>:0) UnityEditor.SceneView.OnGUI () (at <6d0b5326886a4f0e8ed4ea356b37330b>:0) UnityEditor.HostView.InvokeOnGUI (UnityEngine.Rect onGUIPosition, UnityEngine.Rect viewRect) (at <6d0b5326886a4f0e8ed4ea356b37330b>:0) UnityEditor.DockArea.DrawView (UnityEngine.Rect viewRect, UnityEngine.Rect dockAreaRect) (at <6d0b5326886a4f0e8ed4ea356b37330b>:0) UnityEditor.DockArea.OldOnGUI () (at <6d0b5326886a4f0e8ed4ea356b37330b>: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 :0)
[10:06 PM]
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, UnityEngine.Matrix4x4 worldTransform, UnityEngine.Rect clippingRect, System.Action onGUIHandler, System.Boolean canAffectFocus) (at :0) UnityEngine.UIElements.IMGUIContainer.DoIMGUIRepaint () (at :0) UnityEngine.UIElements.UIR.RenderChainCommand.ExecuteNonDrawMesh (UnityEngine.UIElements.UIR.DrawParams drawParams, System.Single pixelsPerPoint, System.Exception& immediateException) (at :0) Rethrow as ImmediateModeException UnityEngine.UIElements.UIR.RenderChain.Render () (at :0) UnityEngine.UIElements.UIRRepaintUpdater.Update () (at :0) UnityEngine.UIElements.VisualTreeUpdater.UpdateVisualTreePhase (UnityEngine.UIElements.VisualTreeUpdatePhase phase) (at :0) UnityEngine.UIElements.Panel.UpdateForRepaint () (at :0) UnityEngine.UIElements.Panel.Repaint (UnityEngine.Event e) (at :0) UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at :0) UnityEngine.UIElements.UIElementsUtility.UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& eventHandled) (at :0) UnityEngine.UIElements.UIEventRegistration.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at :0) UnityEngine.UIElements.UIEventRegistration+<>c.<.cctor>b__1_2 (System.Int32 i, System.IntPtr ptr) (at :0) UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& result) (at <2500dd078a544a69b6c923861af6cd15>:0)
Can you file a bug report please? If it’s not possible to include your project, the editor log may be enough to go on.