Hi everyone!
With the ProBuilder API, I need to do the same operation as a “group selected faces” in the UV editor.
Is it possible? I couldn’t find anything in the API doc.
Looking at the ProBuilder source code from the package, in the AutoUVEditor.cs
file, I see this:
if (GUILayout.Button(gc_GroupSelected))
{
for (int i = 0; i < selection.Length; i++)
TextureGroupSelectedFaces(selection[i]);
ProBuilderEditor.Refresh();
}
I would start there, and dig into:
private static void TextureGroupSelectedFaces(ProBuilderMesh pb)//, pb_Face face)
1 Like
Thanks, will try!