1.修复一些错误2.准备专门提供基于距离的spline3.tracydll存在崩溃问题
This commit is contained in:
8
Assets/Scripts/MoreSpline/PointBaseRenderer.meta
Normal file
8
Assets/Scripts/MoreSpline/PointBaseRenderer.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: da6c171a12ce19a4b959c747030b3308
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,21 @@
|
||||
using Dreamteck.Splines;
|
||||
using System.Collections;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Demo.Game
|
||||
{
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9f011726bf166a94bae2be796e120b8b
|
||||
@@ -1,16 +1,14 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using Convention;
|
||||
using Dreamteck.Splines;
|
||||
using System.Collections;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Demo.Game
|
||||
{
|
||||
public class SplineSurfaceRenderer : BasicSplineRenderer<SurfaceGenerator>
|
||||
{
|
||||
public static SplineTrackRenderer Make()
|
||||
public static SplineSurfaceRenderer Make()
|
||||
{
|
||||
return new GameObject().AddComponent<SplineTrackRenderer>();
|
||||
return new GameObject().AddComponent<SplineSurfaceRenderer>();
|
||||
}
|
||||
|
||||
protected override IEnumerator DoSomethingDuringApplyScript()
|
||||
Reference in New Issue
Block a user