MD Package Technical & APi Documentation
MDG_SplineTunnelEditor
Namespace: MDPackage.Geometry
Complete spline-based tunnel editor direclty at runtime or in Unity Editor.
Read more here (Online documentation slide)
Properties
// Target spline handler for the tunnel editor
public MDM_SplineHandler SplineHandler { get; set; }

public int ResolutionPerSpline { get; set; }
public int ResolutionRadial { get; set; }
public float Radius { get; set; }
public Vector2 UvTiling { get; set; }
public bool RevertAngles { get; set; }
// Anchor type for the generated tunnel/ tube (Center, Bottom, Top, NormalTangent)
public AnchorType CurrentAnchorType { get; set; }
Public Methods
// Create the spline tunnel editor automatically
public static void CreateGeometry()

// Update the procedural mesh along the target spline
public void UpdateProceduralMesh(bool clearAndReinitialize)