Unity Engine documentationScript ReferenceUnityEngineTrailRenderernumPositionsGet the number of line segments in the trail.Read time 1 minuteLast updated 8 days agoDefinition Type: Property Namespace: UnityEngine Assembly: UnityEngine.CoreModule WarningDeprecated. Use positionCount insteadUpgrade to TrailRenderer.positionCount public int numPositions { get; }