{"version":"1.0","type":"rich","title":"Gist 3123920bae0bae527715dcb6f6752384","description":"This example shows a Unity Editor tool that separates a Tilt Brush sketch into individual strokes or color groups. It presents a dialog offering “Group By Color” or “All Strokes” modes, then duplicates selected GameObjects and rebuilds their meshes accordingly. The code uses Unity’s EditorUtility.DisplayDialogComplex and DisplayCancelableProgressBar for interactive feedback, and processes mesh triangles via MeshFilter, mesh.colors, and mesh.triangles. In color mode, it averages triangle colors to cluster geometry; in stroke mode, it isolates each vertex’s stroke index. The tool relies on Undo.RegisterCreatedObjectUndo to support editor undo.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-3123920bae0bae527715dcb6f6752384?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}