private int edges | Number of sides around the tube; 6 by default. |
private MeshFilter filter | The MeshFilter the mesh is written to. |
private bool isUsingSmartSegmentCount | When on, each curve gets more segments the more it bends, instead of a fixed segments count. |
private float normalOffset | Sideways offset of the tube from the spline. |
private Vector3 normalUp | Up direction used to work out the tube's sideways axes. |
private AnimationCurve radius | Tube radius along the spline, from 0 (start) to 1 (end). |
private int segments | Number of segments along the spline when smart segments are off. Overwritten with the total when they are on. |
private float smartSegmentMinimum | Fewest segments per curve with smart segments. |
private float smartSegmentRatioMultiplier | How many extra segments a curve gets per unit of bend (path length over straight distance). |
private float uvStretch | Length of spline per unit of texture V; higher stretches the texture. |
private float yOffset | Fixed upward offset of the whole tube. |
private AnimationCurve yPointOffset | Upward offset along the spline, from 0 (start) to 1 (end). |