WuhuIslandTesting/Library/PackageCache/com.unity.splines@1.0.1/Samples~/Scenes/1 - Loft Road
2025-01-07 02:06:59 +01:00
..
Loft Road.unity initial commit 2025-01-07 02:06:59 +01:00
Loft Road.unity.meta initial commit 2025-01-07 02:06:59 +01:00
README.md initial commit 2025-01-07 02:06:59 +01:00
README.md.meta initial commit 2025-01-07 02:06:59 +01:00

Loft Road Sample

This sample demonstrates how to write a road mesh loft tool using SplineUtility and SplineEditorUtility APIs. See LoftRoadBehaviour.cs script as example of how SplineUtility's EvaluatePosition, EvaluateTangent and EvaluateUpVector functions can be used to extract information about a Spline and how EditorSplineUtility's callbacks can be leveraged for tooling. In addition, the width of the loft is driven by use of SplineData which is a good example of how custom data can be associated with Splines.

Manipulate Road Spline game object's Spline to see the road regenerate.