using System; using System.Collections.Generic; using UnityEngine; using UnityEngine.Splines; namespace Unity.Splines.Examples { [RequireComponent(typeof(SplineContainer))] public class DisplayCurvatureOnSpline : MonoBehaviour { [Serializable] public struct CurvatureConfig { public bool display; public float time; } public List m_CurvatureTimes = new List(); SplineContainer m_Container; public SplineContainer container { get { if(m_Container == null) m_Container = GetComponent(); return m_Container; } } } }