解决了内存泄漏问题(BasicSplineJustFollow.Update中判断材质是否变更的方式有误)
This commit is contained in:
@@ -173,14 +173,6 @@ namespace Demo.Game
|
||||
if (MyMeshGenerator == null)
|
||||
return;
|
||||
base.UpdateTicks(currentTime, deltaTime, tickType);
|
||||
if (currentTime >= Entries[0].TimePoint && (tickType == TickType.Update))
|
||||
{
|
||||
if (MyLineMaterial != MyMeshRenderer.material)
|
||||
{
|
||||
MyMeshRenderer.material = MyLineMaterial;
|
||||
MyMeshGenerator.Rebuild();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public override Vector3 EvaluateClipFromPosition(float time)
|
||||
|
||||
Reference in New Issue
Block a user