QuadraticBezierExtrusionPath
public sealed class QuadraticBezierExtrusionPath : IExtrusionPath, IExtrusionPathCacheIdentityQuadratic Bézier path between (0,0,0) → (0,0,-depth), with an optional mid- control point that bends the path out of the straight line. Useful for testing the path-extrusion pipeline and for ribbon / banner effects.
Constructors
Section titled “Constructors”
QuadraticBezierExtrusionPath(Vector3, Vector3, Vector3, int)
Section titled “QuadraticBezierExtrusionPath(Vector3, Vector3, Vector3, int)”public QuadraticBezierExtrusionPath(Vector3 p0, Vector3 p1, Vector3 p2, int sampleCount = 32)Samples a renderer-local quadratic Bézier into arc-length lookup data and rotation-minimizing orientation frames.
Parameters
| Name | Type | Description |
|---|---|---|
p0 |
UnityEngine.Vector3 | |
p1 |
UnityEngine.Vector3 | |
p2 |
UnityEngine.Vector3 | |
sampleCount |
System.Int32 | Path subdivisions, clamped from four to 128. |
Methods
Section titled “Methods”
Sample(float, out Vector3, out Vector3, out Vector3)
Section titled “Sample(float, out Vector3, out Vector3, out Vector3)”public void Sample(float t, out Vector3 position, out Vector3 forward, out Vector3 up)Sample the path at normalised parameter t.
t = 0 corresponds to the back face (z = 0 in Standard mode);
t = 1 corresponds to the front face (z = −depth in Standard mode).
Parameters
| Name | Type | Description |
|---|---|---|
t |
System.Single | Normalised parameter in [0, 1]. |
position |
UnityEngine.Vector3 | Renderer-local position of the sampled frame. |
forward |
UnityEngine.Vector3 | Unit vector pointing along the path (replaces +Z). |
up |
UnityEngine.Vector3 | Unit vector orthogonal to forward (replaces +Y). |
Properties
Section titled “Properties”
ArcLength
Section titled “ArcLength”public float ArcLength { get; }Total arc length of the path in local units. Consumed by the generator to scale per-ring Z spacing so body steps are uniform along curved paths. Return 0 for an “infinitely” short path (collapsed to a single point).
Returns
System.Single
SampleCount
Section titled “SampleCount”public int SampleCount { get; }Minimum axial segment count required to represent this path.
Returns
System.Int32
Revision
Section titled “Revision”public int Revision { get; }Monotonic content revision owned by the path provider.
Returns
System.Int32
CacheIdentity
Section titled “CacheIdentity”public int CacheIdentity { get; }Deterministic identity for the current immutable path snapshot.
Returns
System.Int32