This commit is contained in:
SoulliesOfficial
2026-06-09 11:21:32 -04:00
parent e97646ae48
commit 997d187147
14 changed files with 243697 additions and 19663 deletions

View File

@@ -45,6 +45,8 @@ namespace Ichni.RhythmGame
this.trackDisplay = UnityEngine.Object.Instantiate(EditorManager.instance.basePrefabs.trackDisplay, track.transform).GetComponent<SplineRenderer>();
this.trackDisplay.spline = path;
this.trackDisplay.size = 0.1f;
// 与 TrackRendererSubmodule 保持一致LateUpdate 模式消除一帧延迟
this.trackDisplay.updateMethod = SplineUser.UpdateMethod.LateUpdate;
this.SetDisplay(isShowingDisplay);

View File

@@ -27,7 +27,9 @@ namespace Ichni.RhythmGame
this.splineRenderer.doubleSided = true;
this.splineRenderer.clipFrom = 0;
this.splineRenderer.clipTo = 1;
this.splineRenderer.updateMethod = SplineUser.UpdateMethod.Update;
// LateUpdate 模式保证 MeshGenerator 在 SplineComputer.Update() 重采样之后才重建网格,
// 消除 Update 模式下因 MonoBehaviour 执行顺序不确定导致的一帧延迟。
this.splineRenderer.updateMethod = SplineUser.UpdateMethod.LateUpdate;
this.meshRenderer.material = renderMaterial;
this.splineRenderer.color = Color.white;
this.uvRotation = 0f;

View File

@@ -24,7 +24,9 @@ namespace Ichni.RhythmGame
this.pathGenerator.doubleSided = true;
this.pathGenerator.clipFrom = 0;
this.pathGenerator.clipTo = 1;
this.pathGenerator.updateMethod = SplineUser.UpdateMethod.Update;
// LateUpdate 模式保证 MeshGenerator 在 SplineComputer.Update() 重采样之后才重建网格,
// 消除 Update 模式下因 MonoBehaviour 执行顺序不确定导致的一帧延迟。
this.pathGenerator.updateMethod = SplineUser.UpdateMethod.LateUpdate;
this.meshRenderer.material = renderMaterial;
this.pathGenerator.color = Color.white;
this.uvRotation = 90f;

View File

@@ -24,7 +24,9 @@ namespace Ichni.RhythmGame
this.surface.doubleSided = true;
this.surface.clipFrom = 0;
this.surface.clipTo = 1;
this.surface.updateMethod = SplineUser.UpdateMethod.Update;
// LateUpdate 模式保证 MeshGenerator 在 SplineComputer.Update() 重采样之后才重建网格,
// 消除 Update 模式下因 MonoBehaviour 执行顺序不确定导致的一帧延迟。
this.surface.updateMethod = SplineUser.UpdateMethod.LateUpdate;
this.meshRenderer.material = renderMaterial;
this.surface.color = Color.white;
this.surface.uvRotation = 90;

View File

@@ -27,7 +27,9 @@ namespace Ichni.RhythmGame
this.tubeGenerator.doubleSided = true;
this.tubeGenerator.clipFrom = 0;
this.tubeGenerator.clipTo = 1;
this.tubeGenerator.updateMethod = SplineUser.UpdateMethod.Update;
// LateUpdate 模式保证 MeshGenerator 在 SplineComputer.Update() 重采样之后才重建网格,
// 消除 Update 模式下因 MonoBehaviour 执行顺序不确定导致的一帧延迟。
this.tubeGenerator.updateMethod = SplineUser.UpdateMethod.LateUpdate;
this.meshRenderer.material = renderMaterial;
this.tubeGenerator.color = Color.white;
this.tubeGenerator.uvRotation = 90;