确认到内存溢出发生在Note模板(SplineArchor的ScriptUpdate内部)

This commit is contained in:
2025-10-10 23:52:27 +08:00
parent 9ab8b8ba0b
commit 80a39dd71d
4 changed files with 4 additions and 5 deletions

View File

@@ -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)