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

22 lines
587 B
C#
Raw Normal View History

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