Files
Convention-Unity-Demo/Assets/Scripts/MoreSpline/PointBaseRenderer/SplineRenderer.cs
2025-12-12 15:19:10 +08:00

24 lines
621 B
C#

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