using Dreamteck.Splines; using System.Collections; using UnityEngine; namespace Demo.Game { public class SplineSurfaceRenderer : BasicSplineRenderer { public static SplineSurfaceRenderer Make() { return new GameObject().AddComponent(); } protected override IEnumerator DoSomethingDuringApplyScript() { if (MyDefaultMaterial == null) MyDefaultMaterial = StaticCacheDefaultMaterial; yield return base.DoSomethingDuringApplyScript(); } } }