确认到内存溢出发生在Note模板(SplineArchor的ScriptUpdate内部)
This commit is contained in:
@@ -4,7 +4,7 @@ using UnityEngine;
|
||||
|
||||
namespace Demo.Game
|
||||
{
|
||||
public class SplineAnchor : ScriptableObject,IDependOnSplineCore, IDependOnSplineRenderer
|
||||
public class SplineAnchor : ScriptableObject, IDependOnSplineCore, IDependOnSplineRenderer
|
||||
{
|
||||
public static SplineAnchor Make()
|
||||
{
|
||||
@@ -77,8 +77,7 @@ namespace Demo.Game
|
||||
Updater = () =>
|
||||
{
|
||||
var result = MySplineRenderer.EvaluateClipTo(MySplineOffset);
|
||||
transform.position = result.position;
|
||||
transform.rotation = result.rotation;
|
||||
transform.SetPositionAndRotation(result.position, result.rotation);
|
||||
};
|
||||
}
|
||||
else if (bIsFollowPosition)
|
||||
|
||||
Reference in New Issue
Block a user