Files
Convention-Unity-Demo/Assets/Scripts/MoreSpline/PointBaseRenderer/SplineTrackRenderer.cs

24 lines
615 B
C#
Raw Normal View History

2025-09-25 19:04:05 +08:00
using System;
using System.Collections;
using Convention;
using Dreamteck.Splines;
using UnityEngine;
namespace Demo.Game
{
public class SplineTrackRenderer : BasicSplineRenderer<PathGenerator>
2025-09-25 19:04:05 +08:00
{
public static SplineTrackRenderer Make()
{
return new GameObject().AddComponent<SplineTrackRenderer>();
}
protected override IEnumerator DoSomethingDuringApplyScript()
{
if (MyDefaultMaterial == null)
MyDefaultMaterial = StaticCacheDefaultMaterial;
yield return base.DoSomethingDuringApplyScript();
}
2025-09-25 19:04:05 +08:00
}
}