Publisher | Krooq |
---|---|
File size | 1.19MB |
Number of files | 33 |
Latest version | 1 |
Latest release date | 2025-02-04 01:05:13 |
First release date | 2025-02-04 01:05:13 |
Supported Unity versions | 2018.4.2 or higher |
Path Mesher is a simple script that can turn a Spline into a path-like low poly mesh.
It is designed to work in a similar way to a tool that Jonas Tyroller used to develop the game Thronefall. The tool can create various terrain features such as cliffs, rivers, roads etc. whatever little squiggly extruded sausage shape you want, it can probably make it.
Features
- Variable detail levels
- End shapes (none, cap, bulb)
- Noise (wobbly paths)
- Surface conformation (match the shape of coliders underneath)
- UV mapping for textures that run along the spline (repeating road textures)
- Separate materials for top sides and bottom
- Independent tool to add scale data to a spline
- Save mesh as asset
- Uses Unity Splines API, no complicated custom stuff
- Extensible
- Documented (but it's designed to be simple)
- Of course it works with Unity 6!
Package Contents
- PathMesher script containing just the editor serialized data
- AbstractPathMesher containing the meshing logic, easily extensible
- Spline Scale Data tool (add scale data to any spline)
- Sample scenes
Workflow
- 1. Right click in hierarchy and select "3D Object > Path"
- 2. Start modifying your path using the spline tools and inspector
- 3. Profit?
You can also add the PathMesher script via the Add Component context menu.
Once done you can save your meshes to an asset to serialize them in prefabs or keep them serialzed into the scene objects, up to you.
Important!!!
Gizmos must be turned on for the tool to work.
If you do not see any mesh generated, or any changes, make sure your gizmos are turned on in the scene tools!
Contact