CinemachinePathBase.DistanceCacheIsValid Method

Cinemachine

CinemachinePathBaseDistanceCacheIsValid Method

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

Namespace:  Cinemachine
Assembly:  Cinemachine (in Cinemachine.dll) Version: 2.0.0.0 (2.0.0.0)
Syntax
public bool DistanceCacheIsValid()
function DistanceCacheIsValid();

Return Value

Type: Boolean
Whether the cache is valid for this sampling rate
See Also