Class SplineExtrude
A component for creating a tube mesh from a Spline at runtime.
Inherited Members
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Namespace: UnityEngine.Splines
Assembly: solution.dll
Syntax
[RequireComponent(typeof(MeshFilter), typeof(MeshRenderer))]
[AddComponentMenu("Splines/Spline Extrude")]
public class SplineExtrude : MonoBehaviour
Properties
Name | Description |
---|---|
Capped | Whether the start and end of the mesh is filled. This setting is ignored when spline is closed. |
Container | The SplineContainer of the Spline to extrude. |
Radius | The radius of the extruded mesh. |
Range | The section of the Spline to extrude. |
RebuildFrequency | The maximum number of times per-second that the mesh will be rebuilt. |
RebuildOnSplineChange | Enable to regenerate the extruded mesh when the target Spline is modified. Disable this option if the Spline will not be modified at runtime. |
SegmentsPerUnit | How many edge loops comprise the one unit length of the mesh. |
Sides | How many sides make up the radius of the mesh. |
Spline | The main Spline to extrude. |
Splines | The Splines to extrude. |
Methods
Name | Description |
---|---|
Rebuild() | Triggers the rebuild of a Spline's extrusion mesh and collider. |