Cinemachine
![]() | CinemachineSmoothPath Class |
Defines a world-space path, consisting of an array of waypoints,
each of which has position and roll settings. Bezier interpolation
is performed between the waypoints, to get a smooth and continuous path.
The path will pass through all waypoints, and (unlike CinemachinePath) first
and second order continuity is guaranteed

SystemObject Object
Component
Behaviour
MonoBehaviour
CinemachineCinemachinePathBase
CinemachineCinemachineSmoothPath
Component
Behaviour
MonoBehaviour
CinemachineCinemachinePathBase
CinemachineCinemachineSmoothPath
Namespace: Cinemachine
Assembly: Cinemachine (in Cinemachine.dll) Version: 2.0.0.0 (2.0.0.0)

[DocumentationSortingAttribute(18.5f, DocumentationSortingAttributeLevel.UserRef)] [AddComponentMenu("Cinemachine/CinemachineSmoothPath")] [SaveDuringPlayAttribute] public class CinemachineSmoothPath : CinemachinePathBase
Cinemachine.CinemachineSmoothPath = function(); Type.createClass( 'Cinemachine.CinemachineSmoothPath', Cinemachine.CinemachinePathBase);
The CinemachineSmoothPath type exposes the following members.

Name | Description | |
---|---|---|
![]() | CinemachineSmoothPath |

Name | Description | |
---|---|---|
![]() | DistanceCacheSampleStepsPerSegment | When calculating the distance cache, sample the path this many
times between points (Overrides CinemachinePathBaseDistanceCacheSampleStepsPerSegment.) |
![]() | Looped | True if the path ends are joined to form a continuous loop (Overrides CinemachinePathBaseLooped.) |
![]() | MaxPos | The maximum value for the path position (Overrides CinemachinePathBaseMaxPos.) |
![]() | MinPos | The minimum value for the path position (Overrides CinemachinePathBaseMinPos.) |
![]() | PathLength | Get the length of the path in distance units.
If the distance cache is not valid, then calling this will
trigger a potentially costly regeneration of the path distance cache (Inherited from CinemachinePathBase.) |

Name | Description | |
---|---|---|
![]() | DistanceCacheIsValid | See whether the distance cache is valid. If it's not valid,
then any call to GetPathLength() or GetPathPositionFromDistance() will
trigger a potentially costly regeneration of the path distance cache (Inherited from CinemachinePathBase.) |
![]() | EvaluateOrientation | Get the orientation the curve at a point along the path. (Overrides CinemachinePathBaseEvaluateOrientation(Single).) |
![]() | EvaluateOrientationAtUnit | Get the orientation the curve at a point along the path. (Inherited from CinemachinePathBase.) |
![]() | EvaluatePosition | Get a worldspace position of a point along the path (Overrides CinemachinePathBaseEvaluatePosition(Single).) |
![]() | EvaluatePositionAtUnit | Get a worldspace position of a point along the path (Inherited from CinemachinePathBase.) |
![]() | EvaluateTangent | Get the tangent of the curve at a point along the path. (Overrides CinemachinePathBaseEvaluateTangent(Single).) |
![]() | EvaluateTangentAtUnit | Get the tangent of the curve at a point along the path. (Inherited from CinemachinePathBase.) |
![]() | FindClosestPoint | Find the closest point on the path to a given worldspace target point. (Inherited from CinemachinePathBase.) |
![]() | GetPathDistanceFromPosition | Get the path position (in path units) corresponding to this distance along the path.
If the distance cache is not valid, then calling this will
trigger a potentially costly regeneration of the path distance cache (Inherited from CinemachinePathBase.) |
![]() | GetPathPositionFromDistance | Get the path position (in path units) corresponding to this distance along the path.
If the distance cache is not valid, then calling this will
trigger a potentially costly regeneration of the path distance cache (Inherited from CinemachinePathBase.) |
![]() | InvalidateDistanceCache | Call this if the path changes in such a way as to affect distances
or other cached path elements (Overrides CinemachinePathBaseInvalidateDistanceCache.) |
![]() | MaxUnit | Get the maximum value, for the given unity type (Inherited from CinemachinePathBase.) |
![]() | MinUnit | Get the minimum value, for the given unity type (Inherited from CinemachinePathBase.) |
![]() | NormalizePathDistance | Normalize a distance along the path based on the path length.
If the distance cache is not valid, then calling this will
trigger a potentially costly regeneration of the path distance cache (Inherited from CinemachinePathBase.) |
![]() | NormalizePos | Get a normalized path position, taking spins into account if looped (Inherited from CinemachinePathBase.) |
![]() | NormalizeUnit | Normalize the unit, so that it lies between MinUmit and MaxUnit (Inherited from CinemachinePathBase.) |

Name | Description | |
---|---|---|
![]() | m_Appearance | The settings that control how the path
will appear in the editor scene view. (Inherited from CinemachinePathBase.) |
![]() | m_Looped | If checked, then the path ends are joined to form a continuous loop |
![]() | m_Resolution | Path samples per waypoint (Inherited from CinemachinePathBase.) |
![]() | m_Waypoints | The waypoints that define the path.
They will be interpolated using a bezier curve |
