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

22 lines
592 B
C#
Raw Normal View History

using Dreamteck.Splines;
using System.Collections;
using UnityEngine;
namespace Demo.Game
{
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();
}
}
}