Autostitch not working in UV Editor ?

Hi,

Using Unity 2018.3.2f1 and Probuilder 3.0.9.
I built a probuilder cube with new shape menu.
Then i select it and open UV Editor to unwrap the uvs in order to make a texture.
Then here is my problem:
I was used to autostitch but here i can select a face, then hold ctrl click on another one as much as i want it will never autostitch like in this video :

This action will just make a multiple selection. And i have tried with all the faces.
So, what am i doing wrong ? Why autostitch don’t work anymore ?

Hi! I’d recommend first upgrading to the new ProBuilder 4 (should be available in Package Manager). Then let me know if you still have this issue? It’s working fine for me here, using PB 4.0.2 :slight_smile:

Hope that helps!

I upgraded to 4.0.2 and the problem is still here.

Also, my other meshes that were using the default material are pink now (don’t know if it’s important :

And the 3d objects i made with probuilder 3.0.9 are missing a script (the one with the button to open probuilder) :

4142812--364795--upload_2019-1-24_21-49-22.png

Hi! That’s odd- after you clicked “Install”, did you see the “Convert to ProBuilder 4” pop-up, and after that, the “Reload Scene” prompt? That process should ensure you have a correct upgrade. However, if you have any un-clearable errors showing (from tools or game scripts), the upgrade process will not be able to complete properly. Could you check for those before and after? Thanks! Since you are still experiencing the auto-stitch issue, I’m guessing the upgrade was unable to complete.

I update from the Package Manager menu here :

then it was a loading with a lot of stuff happening (compling scripts, importing scripts and other stuff) but not a popup with “Convert to ProBuilder 4” and no “Reload Scene prompt”.

Here are the errors i got after (but before i had no errors from my scripts) :

ArgumentNullException: Argument cannot be null.
Parameter name: shader
UnityEngine.Material..ctor (UnityEngine.Shader shader) (at C:/buildslave/unity/build/Runtime/Export/Shader.bindings.cs:105)
ProBuilder.EditorCore.pb_MeshHandles.CreateMaterial (UnityEngine.Shader shader, System.String materialName) (at C:/Users/karlh/procore/probuilder/probuilder2.0/Assets/ProCore/ProBuilder/Editor/EditorCore/pb_MeshHandles.cs:244)
ProBuilder.EditorCore.pb_MeshHandles.Initialize () (at C:/Users/karlh/procore/probuilder/probuilder2.0/Assets/ProCore/ProBuilder/Editor/EditorCore/pb_MeshHandles.cs:84)
ProBuilder.EditorCore.pb_Editor.OnEnable () (at C:/Users/karlh/procore/probuilder/probuilder2.0/Assets/ProCore/ProBuilder/Editor/EditorCore/pb_Editor.cs:220)
FacePicker material not loaded... please re-install ProBuilder to fix this error.
UnityEditor.ProBuilder.ProBuilderEditor:OnEnable()
ArgumentNullException: Argument cannot be null.
Parameter name: shader
UnityEngine.Material..ctor (UnityEngine.Shader shader) (at C:/buildslave/unity/build/Runtime/Export/Shader.bindings.cs:105)
UnityEngine.ProBuilder.BuiltinMaterials.Init () (at Library/PackageCache/com.unity.probuilder@4.0.2/Runtime/Core/BuiltinMaterials.cs:96)
UnityEngine.ProBuilder.BuiltinMaterials.get_geometryShadersSupported () (at Library/PackageCache/com.unity.probuilder@4.0.2/Runtime/Core/BuiltinMaterials.cs:130)
UnityEditor.ProBuilder.EditorMeshHandles.Init () (at Library/PackageCache/com.unity.probuilder@4.0.2/Editor/EditorCore/EditorMeshHandles.cs:174)
UnityEditor.ProBuilder.EditorMeshHandles..ctor () (at Library/PackageCache/com.unity.probuilder@4.0.2/Editor/EditorCore/EditorMeshHandles.cs:157)
UnityEditor.ProBuilder.EditorMeshHandles.Get () (at Library/PackageCache/com.unity.probuilder@4.0.2/Editor/EditorCore/EditorMeshHandles.cs:191)
UnityEditor.ProBuilder.EditorMeshHandles.ResetPreferences () (at Library/PackageCache/com.unity.probuilder@4.0.2/Editor/EditorCore/EditorMeshHandles.cs:208)
UnityEditor.ProBuilder.ProBuilderEditor.LoadSettings () (at Library/PackageCache/com.unity.probuilder@4.0.2/Editor/EditorCore/ProBuilderEditor.cs:377)
UnityEditor.ProBuilder.ProBuilderEditor.OnEnable () (at Library/PackageCache/com.unity.probuilder@4.0.2/Editor/EditorCore/ProBuilderEditor.cs:309)

In case this is important, i have meshes done with 3.0.9 versions that i want to use and not to lose by using 4.0.2…

Should i uninstall probuilder ? If yes how to do it the right way ?
Then reinstall it ?

If i do that, will I lose or break all my meshes ?

I removed ProBuilder version from Package Manager and deleted these folders :
\AppData\Local\Unity\cache\packages\packages.unity.com\com.unity.probuilder@4.0.2 \AppData\Local\Unity\cache\packages\packages.unity.com\com.unity.probuilder@3.0.9

I also deleted unity Library folder to regenerate the project.

Then i installed again ProBuilder 4.0.2 and the autostitch problem is still here but the errors are gone.

What can i do ?

Just to be sure, created a totally new project and tried to use autostitch (in UV Editor select one distant face, then hold ctrl and click on an adjacent face to make it collapse to the other) but it just select the 2 faces.

Process here just in case i’m doing it wrong :

Hi! Assuming you have have GitHub/similar, the best option is to revert, then re-do the update. If you don’t have a source control setup, then I’d recommend, zero sarcasm :), first go setup GitHub and make a “save”, if at all possible :slight_smile:

Ok! I watched the video- you actually need to click on faces in the scene, not the UV Editor. The purpose of the tool is that you can clearly see what faces you are stitching, so just select in the scene (with the UV editor open), then CTRL-click an adjacent face and it will stitch :slight_smile:

Ok, i was doing it wrong haha and it worked with a new project used for test.

But the project on which i want to use Probuilder have problems to update to 4.0.2 like this missing script shows :

So i need to revert ProBuilder ? Do you mean unisntall ? Because i did that and it didn’t worked :confused:

Meanwhile i will use 3.0.9 which is working now that i know how to autostitch :smile:

Thanks for your help !

Hi! I meant revert via GitHub/similar :slight_smile: Checkpoints are good!

Can you try installing PB 4 in a new, clean project- does that work? Thanks!

PB 4 in a new project works correctly yes.
In my project (the one with the old meshes from 3.0.9) it seems that the meshes cannot be converted to PB 4 meshes.

Ok, good to know it works in the new project, one half solved.

For upgrading your project, can you try manually running the conversion tools? Just install PB4 then from the main menu choose “Tools > ProBuilder > Repair > Convert to ProBuilder 4”.

After updating to 4.0.3 :
Here are the options i have and there is not the “Convert to Probuilder 4” option :

I tired “Check for broken probuilder reference” and the result was : No missing or broken references found.

Then i tried “Rebuild all probuilder objects” option and the result was : Successfully refreshed all probuilder objects in scene. Note taht this operation was instant, no loading at all.

Hi! Yep, sorry about the naming there- it was changed to “Check for broken probuilder reference” in an update that I wasn’t aware of :smile:

Since I’m unable to solve it here, could you file an official bug report, including the project? We’ll need to dig deeper, thanks! Note: that’s “Help > Report a Bug”

Just figured I’d post this here. After updating from 3.09 to 4.03, I’ve noticed an issue with auto-stitching where sometimes it won’t move the UV face next to the object I’m stitching to and keeps it underneath.

To better explain; say I’m stitching 4 faces in a row. I stitch 1,2,3 then when I go to stitch 4, it will stitch but face 4 will remain under face 3 instead of going beside it. I then have to manually move it beside. This happens frequently and in random orders depending on the object.

Hi! Sorry about that, it’s a bug, fixed internally already, should have an update out soon! :slight_smile: Actually, in the process of fixing, Karl also added the ability to auto-stitch AutoUV faces, too, which is SUPER :slight_smile:

Nice!!

Hi gabriel!

After updating to 4.0.3, I’ve seen an issue with auto-stitching where sometimes it won’t move the UV face next to the object I’m stitching to and keeps it underneath. Created a new project and did the same, but it does not works for me.

Also, if I am selecting the UV faces then converting them to manual and saving the uv texture. Edited the texture using photoshop and it is weird that texture applied to the cube, changes the face position.

Prevoiusly, it was working fine for me. I could see this change after I updated to the 4.0.3.

Attached the screenshot of both versions of the UV texture.


Hi Neevan- yes, sorry we’re aware of this issue and hope to tackle it soon. If all goes well, we’ll have an update with many selection and UV fixes, before GDC.

Thank you so much for the useful information.

But still autostiching is not working for me, is that update will be available before GDC.

Thanks in advance.