This commit is contained in:
2026-07-26 03:44:27 +08:00
parent 86351dbd2a
commit add675e45d
223 changed files with 1960 additions and 10735 deletions
@@ -73,6 +73,14 @@ public class trackFractureController : MonoBehaviour
{
CacheTrackReferences();
ApplyRuntimeDissolveMaterials();
// 游戏准备开始时强制把所有轨道的 _Fade 复位为 1(完整显示,未溶解)。
// 碎裂溶解是 _Fade 1→0 的过程(见 fractureFadeStartValue/EndValue),1 表示轨道完整。
// 不克隆(cloneDissolveMaterialAtRuntime=0)时直接驱动 .mat 资产,若上次运行因异常
// (编辑器崩溃/强杀)未走 OnDestroy 的恢复,_Fade 可能残留为 0 导致本局轨道不显示。
// 这里在开局主动复位,作为兜底,避免此类未恢复的显示 bug。
SetAllTrackFade(1f);
SetAllTrackLocalZ(startLocalZ);
if (playStartZMove)