ShapeBuilder is a Unity toolkit for procedural shape and mesh generation directly inside the Unity Editor.
It is designed for editable spline-based 3D modeling and SVG-like 2D modeling inside Unity. You can create Bezier extrusions, 2D graph shapes with paths and fill rules, custom profiles, repeated prefab placement, UV mapping, colliders, and level-design objects such as roads, pipes, rails, signs, and decorative geometry.
Main Features
✔️ OutlineBezierShape
Create 3D meshes by extruding a 2D profile along a Bezier spline. Profiles can be generated from the component itself, or assigned from a Shape2DGraphSpline as a custom 2D section.
✔️ Shape2DGraphSpline
Create editable 2D graph shapes using an SVG-like path workflow. Supports exterior paths, interior paths, compound shapes, intersections, Even Odd and Non Zero fill rules, mesh generation, UV preview, and collider generation.
✔️ SVG Import
Import SVG files as editable Shape2DGraphSpline objects. After import, the result remains editable inside Unity: anchors, paths, tangents, resolution, fill rule, and mesh settings can still be modified.
✔️ SplinePlacer
Place prefabs along a Bezier spline by count or distance. Useful for fences, rails, lamps, decorations, wooden planks, road props, and repeated objects following a path.
✔️ Custom 2D Profiles
Use Shape2DGraphSpline shapes as custom profiles for OutlineBezierShape, allowing complex extruded sections with holes and editable contours.
✔️ UV Mapping Tools
Control side, cap, loop, planar, and linear UV mapping. Includes UV visualizers to inspect generated UVs and export UV layouts when needed.
✔️ Collider Generation
Generate colliders from Shape2DGraphSpline and OutlineBezierShape outputs. Shape2DGraphSpline supports PolygonCollider2D generation, including optional hole collider handling. OutlineBezierShape supports MeshCollider generation.
✔️ Runtime and Editor Workflow
Use ShapeBuilder in the editor for fast iteration, or call the public API to generate and refresh meshes procedurally at runtime.
Why ShapeBuilder?
✔️ Editable workflow : Keep anchors, tangents, paths, profiles, and UV settings available.
✔️ 3D spline modeling : Create extrusions, pipes, roads, rails, signs, borders, strips, and custom geometry.
✔️ SVG-like 2D modeling : Create 2D graph shapes with paths, holes, intersections, and fill rules.
✔️ Fast iteration : Disable expensive graph or mesh rebuilds while editing, then refresh when needed.
✔️ Level-design friendly : Create roads, pipes, rails, signs, repeated props, and custom scene geometry.
✔️ Unity friendly : Works directly with GameObjects, MeshRenderer, MeshFilter, colliders, and prefabs.
✔️ Runtime ready : Suitable for tools, procedural content, prototyping, and runtime mesh generation.
Technical Details
Useful Links
Demo Disclaimer
Some demo scenes, screenshots, and videos use third-party assets to showcase possible use cases.
Credits for Demo Assets
• Wooden Plank by Justin Randall via Poly Pizza, CC-BY
• Big Tree by 3Donimus via Poly Pizza, CC-BY
• Train / Rail / Railway Power Lines, Fab Standard License
• Gold Coast G:Link Light Rail Tram | Flexity 2, Fab Standard License
• Urban Street Light, CC BY 4.0
• Quaternius Cars Pack, CC0
• URP Stylized Water Shader - Proto Series by BitGem