Method GetLength
GetLength()
Return the sum of all curve lengths, accounting for Closed state. Note that this value is not accounting for transform hierarchy. If you require length in world space use
Declaration
public float GetLength()
Returns
Type | Description |
---|---|
float | Returns the sum length of all curves composing this spline, accounting for closed state. |
Implements
Remarks
This value is cached. It is recommended to call this once in a non-performance critical path to ensure that the cache is valid.