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