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

24 lines
626 B
C#
Raw Normal View History

2025-12-12 15:19:10 +08:00
using Demo.Attr;
using Dreamteck.Splines;
using System.Collections;
using UnityEngine;
namespace Demo.Game
{
2025-12-12 15:19:10 +08:00
[Scriptable]
public class SplineSurfaceRenderer : BasicSplineRenderer<SurfaceGenerator>
{
public static SplineSurfaceRenderer Make()
{
return new GameObject().AddComponent<SplineSurfaceRenderer>();
}
protected override IEnumerator DoSomethingDuringApplyScript()
{
if (MyDefaultMaterial == null)
MyDefaultMaterial = StaticCacheDefaultMaterial;
yield return base.DoSomethingDuringApplyScript();
}
}
}