WuhuIslandTesting/Library/PackageCache/com.unity.splines@1.0.1/Samples~/Scenes/5 - SplineData and Generation/README.md

9 lines
817 B
Markdown
Raw Permalink Normal View History

2025-01-07 02:06:59 +01:00
# SplineData and Generation Sample
This is a more complex sample that makes heavy use of `SplineData`, `SplineUtility` and `SplineEditorUtility` APIs to proceduraly generate various spline-based objects in the scene.
Select `FenceSpline` or `EvenlySpawnSpline` game objects and manipulate the spline to see object generation along spline that leverages `SplineUtility.GetPointAtLinearDistance` function.
Select `Road Spline` or `Spline Follower` game objects to see `SplineDataHandles` in action and how they can be used to enable in-editor customization of road's width and follower's animation parameters. See `AnimateCarAlongSpline.cs` example script on how a spline follower can be implemented using `SplineUtility` and `SplineData` APIs.
Enter playmode to see the `AnimateCarAlongSpline.cs` script in action.