Hello.
I was using ProBuilder on Unity 2020.3.30f1 Personal.
After I updated Unity to 2021, ProBuilder stopped working.
I don’t see the Shape Tool window like it used to.
When I try to make a Cube by pressing the New Shape button, I can’t.
If I try to resize the Cube by dragging, NaN will be entered in Size and errors will be output to the console.
transform.position assign attempt for ‘Cube’ is not valid. Input position is { NaN, NaN, NaN }.
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
OverflowException: Value was either too large or too small for an Int32.
System.Convert.ToInt32 (System.Double value) (at <2a5238bf45b34fd9a0fa6c4215e0c8ba>:0)
System.Convert.ToInt32 (System.Single value) (at <2a5238bf45b34fd9a0fa6c4215e0c8ba>:0)
UnityEngine.ProBuilder.IntVec3.round (System.Single v) (at Library/PackageCache/com.unity.probuilder@5.0.6/Runtime/Core/IntVec3.cs:63)
UnityEngine.ProBuilder.IntVec3.Equals (UnityEngine.ProBuilder.IntVec3 p) (at Library/PackageCache/com.unity.probuilder@5.0.6/Runtime/Core/IntVec3.cs:38)
System.Collections.Generic.GenericEqualityComparer1[T].Equals (T x, T y) (at <2a5238bf45b34fd9a0fa6c4215e0c8ba>:0) System.Collections.Generic.Dictionary
2[TKey,TValue].FindEntry (TKey key) (at <2a5238bf45b34fd9a0fa6c4215e0c8ba>:0)
System.Collections.Generic.Dictionary2[TKey,TValue].TryGetValue (TKey key, TValue& value) (at <2a5238bf45b34fd9a0fa6c4215e0c8ba>:0) UnityEngine.ProBuilder.SharedVertex.GetSharedVerticesWithPositions (System.Collections.Generic.IList
1[T] positions) (at Library/PackageCache/com.unity.probuilder@5.0.6/Runtime/Core/SharedVertex.cs:265)
UnityEngine.ProBuilder.ProBuilderMesh.GeometryWithPoints (UnityEngine.Vector3[ ] points) (at Library/PackageCache/com.unity.probuilder@5.0.6/Runtime/Core/ProBuilderMeshFunction.cs:277)
UnityEngine.ProBuilder.Shapes.Cube.RebuildMesh (UnityEngine.ProBuilder.ProBuilderMesh mesh, UnityEngine.Vector3 size, UnityEngine.Quaternion rotation) (at Library/PackageCache/com.unity.probuilder@5.0.6/Runtime/Shapes/Cube.cs:49)
UnityEngine.ProBuilder.Shapes.ProBuilderShape.Rebuild () (at Library/PackageCache/com.unity.probuilder@5.0.6/Runtime/Shapes/ProBuilderShape.cs:149)
UnityEngine.ProBuilder.Shapes.ProBuilderShape.Rebuild (UnityEngine.Bounds bounds, UnityEngine.Quaternion rotation, UnityEngine.Vector3 cornerPivot) (at Library/PackageCache/com.unity.probuilder@5.0.6/Runtime/Shapes/ProBuilderShape.cs:141)
UnityEditor.ProBuilder.DrawShapeTool.RebuildShape () (at Library/PackageCache/com.unity.probuilder@5.0.6/Editor/EditorCore/DrawShapeTool.cs:386)
UnityEditor.ProBuilder.ShapeState_DrawHeightShape.DoState (UnityEngine.Event evt) (at Library/PackageCache/com.unity.probuilder@5.0.6/Editor/StateMachines/ShapeState_DrawHeightShape.cs:78)
UnityEditor.ProBuilder.DrawShapeTool.OnToolGUI (UnityEditor.EditorWindow window) (at Library/PackageCache/com.unity.probuilder@5.0.6/Editor/EditorCore/DrawShapeTool.cs:410)
UnityEditor.EditorTools.EditorToolManager.OnToolGUI (UnityEditor.EditorWindow window) (at /Users/bokken/buildslave/unity/build/Editor/Mono/GUI/Tools/EditorToolManager.cs:475)
UnityEditor.SceneView.DefaultHandles () (at /Users/bokken/buildslave/unity/build/Editor/Mono/SceneView/SceneView.cs:3183)
UnityEditor.SceneView.DoOnGUI () (at /Users/bokken/buildslave/unity/build/Editor/Mono/SceneView/SceneView.cs:2436)
UnityEditor.SceneView.OnSceneGUI () (at /Users/bokken/buildslave/unity/build/Editor/Mono/SceneView/SceneView.cs:2279)
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 /Users/bokken/buildslave/unity/build/ModuleOverrides/com.unity.ui/Core/IMGUIContainer.cs:372)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, UnityEngine.Matrix4x4 worldTransform, UnityEngine.Rect clippingRect, System.Action onGUIHandler, System.Boolean canAffectFocus) (at /Users/bokken/buildslave/unity/build/ModuleOverrides/com.unity.ui/Core/IMGUIContainer.cs:684)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, System.Action onGUIHandler, System.Boolean canAffectFocus) (at /Users/bokken/buildslave/unity/build/ModuleOverrides/com.unity.ui/Core/IMGUIContainer.cs:656)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, System.Boolean canAffectFocus) (at /Users/bokken/buildslave/unity/build/ModuleOverrides/com.unity.ui/Core/IMGUIContainer.cs:649)
UnityEngine.UIElements.IMGUIContainer.SendEventToIMGUIRaw (UnityEngine.UIElements.EventBase evt, System.Boolean canAffectFocus, System.Boolean verifyBounds) (at /Users/bokken/buildslave/unity/build/ModuleOverrides/com.unity.ui/Core/IMGUIContainer.cs:609)
UnityEngine.UIElements.IMGUIContainer.SendEventToIMGUI (UnityEngine.UIElements.EventBase evt, System.Boolean canAffectFocus, System.Boolean verifyBounds) (at /Users/bokken/buildslave/unity/build/ModuleOverrides/com.unity.ui/Core/IMGUIContainer.cs:598)
UnityEngine.UIElements.IMGUIContainer.ProcessEvent (UnityEngine.UIElements.EventBase evt) (at /Users/bokken/buildslave/unity/build/ModuleOverrides/com.unity.ui/Core/IMGUIContainer.cs:526)
UnityEngine.UIElements.IMGUIContainer.ExecuteDefaultActionAtTarget (UnityEngine.UIElements.EventBase evt) (at /Users/bokken/buildslave/unity/build/ModuleOverrides/com.unity.ui/Core/IMGUIContainer.cs:518)
UnityEngine.UIElements.CallbackEventHandler.HandleEvent (UnityEngine.UIElements.EventBase evt) (at /Users/bokken/buildslave/unity/build/ModuleOverrides/com.unity.ui/Core/Events/EventHandler.cs:269)
UnityEngine.UIElements.CallbackEventHandler.HandleEventAtCurrentTargetAndPhase (UnityEngine.UIElements.EventBase evt) (at /Users/bokken/buildslave/unity/build/ModuleOverrides/com.unity.ui/Core/Events/EventHandler.cs:185)
UnityEngine.UIElements.CallbackEventHandler.UnityEngine.UIElements.IEventHandler.HandleEvent (UnityEngine.UIElements.EventBase evt) (at /Users/bokken/buildslave/unity/build/ModuleOverrides/com.unity.ui/Core/Events/EventHandler.cs:202)
UnityEngine.UIElements.EventDispatchUtilities.HandleEventAcrossPropagationPath (UnityEngine.UIElements.EventBase evt) (at /Users/bokken/buildslave/unity/build/ModuleOverrides/com.unity.ui/Core/Events/IEventDispatchingStrategy.cs:155)
UnityEngine.UIElements.EventDispatchUtilities.PropagateEvent (UnityEngine.UIElements.EventBase evt) (at /Users/bokken/buildslave/unity/build/ModuleOverrides/com.unity.ui/Core/Events/IEventDispatchingStrategy.cs:88)
UnityEngine.UIElements.MouseEventDispatchingStrategy.SendEventToRegularTarget (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.BaseVisualElementPanel panel) (at /Users/bokken/buildslave/unity/build/ModuleOverrides/com.unity.ui/Core/Events/MouseEventDispatchingStrategy.cs:36)
UnityEngine.UIElements.MouseEventDispatchingStrategy.SendEventToTarget (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.BaseVisualElementPanel panel) (at /Users/bokken/buildslave/unity/build/ModuleOverrides/com.unity.ui/Core/Events/MouseEventDispatchingStrategy.cs:26)
UnityEngine.UIElements.MouseEventDispatchingStrategy.DispatchEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel iPanel) (at /Users/bokken/buildslave/unity/build/ModuleOverrides/com.unity.ui/Core/Events/MouseEventDispatchingStrategy.cs:19)
UnityEngine.UIElements.EventDispatcher.ApplyDispatchingStrategies (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel, System.Boolean imguiEventIsInitiallyUsed) (at /Users/bokken/buildslave/unity/build/ModuleOverrides/com.unity.ui/Core/EventDispatcher.cs:404)
UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at /Users/bokken/buildslave/unity/build/ModuleOverrides/com.unity.ui/Core/EventDispatcher.cs:345)
UnityEngine.UIElements.EventDispatcher.ProcessEventQueue () (at /Users/bokken/buildslave/unity/build/ModuleOverrides/com.unity.ui/Core/EventDispatcher.cs:307)
UnityEngine.UIElements.EventDispatcher.OpenGate () (at /Users/bokken/buildslave/unity/build/ModuleOverrides/com.unity.ui/Core/EventDispatcher.cs:271)
UnityEngine.UIElements.EventDispatcherGate.Dispose () (at /Users/bokken/buildslave/unity/build/ModuleOverrides/com.unity.ui/Core/EventDispatcher.cs:76)
UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at /Users/bokken/buildslave/unity/build/ModuleOverrides/com.unity.ui/Core/EventDispatcher.cs:395)
UnityEngine.UIElements.EventDispatcher.Dispatch (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel, UnityEngine.UIElements.DispatchMode dispatchMode) (at /Users/bokken/buildslave/unity/build/ModuleOverrides/com.unity.ui/Core/EventDispatcher.cs:223)
UnityEngine.UIElements.BaseVisualElementPanel.SendEvent (UnityEngine.UIElements.EventBase e, UnityEngine.UIElements.DispatchMode dispatchMode) (at /Users/bokken/buildslave/unity/build/ModuleOverrides/com.unity.ui/Core/Panel.cs:441)
UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at /Users/bokken/buildslave/unity/build/ModuleOverrides/com.unity.ui/Core/UIElementsUtility.cs:482)
UnityEngine.UIElements.UIElementsUtility.UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& eventHandled) (at /Users/bokken/buildslave/unity/build/ModuleOverrides/com.unity.ui/Core/UIElementsUtility.cs:211)
UnityEngine.UIElements.UIEventRegistration.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at /Users/bokken/buildslave/unity/build/ModuleOverrides/com.unity.ui/Core/UIElementsUtility.cs:74)
UnityEngine.UIElements.UIEventRegistration+<>c.<.cctor>b__1_2 (System.Int32 i, System.IntPtr ptr) (at /Users/bokken/buildslave/unity/build/ModuleOverrides/com.unity.ui/Core/UIElementsUtility.cs:28)
UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& result) (at /Users/bokken/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:189)
I found a similar issue addressed on this page.
The page said Fixed in 2022.1.X, so I updated Unity to 2022.1.14f1, but the problem persisted.
I’m using macOS Monterey 12.4, Unity 2022.1.14f1(SILICON), ProBuilder 5.0.6.
I made a new empty project, imported ProBuilder and tried it, but the same problem is reproduced.
I would like to know how to resolve this issue.
I want to use ProBuilder.
Thank you.
Hmm, im a little confused on your version attempts here, but , i can say that i have 2021.3.5f1 installed currently, and been woking with ProB for a few days solid now on some vehicle mesh customizations, and it is working fine.
I will just add a little note about 'Fixed in version… etc" Seems to me i see this often, and often, the issues werent actually fixed. But i suppose its better than some other issues that have been on every LTS and ‘never’ recieve a fix.
I solved the problem by tilting the scene view slightly and then creating the Cube.
If I’m looking at the scene straight on the z-axis, the error seems to be due to Size.z being 0.
It seems that it is not possible to create a Cube by directly entering a number in the Size field.
ProBuilder UI has changed since version 4, which was a bit confusing, but I was finally able to create a Cube.
Thank you.
2 Likes