提交log

This commit is contained in:
2025-06-15 18:47:05 +08:00
parent aa15c5e2ea
commit e727f0adb3
+24 -3
View File
@@ -9,6 +9,7 @@ using UnityEngine.Timeline;
using System.Collections.Generic;
using DG.Tweening;
using AibisDream.Utility;
using System.Linq;
namespace AibisDream
{
@@ -158,18 +159,38 @@ namespace AibisDream
public void PlayTimeline_noWait(string timelinePath)
{
Debug.Log($"[Timeline Debug] 开始加载 Timeline: {timelinePath}");
// 加载Timeline资源
var timelineAsset = Resources.Load<TimelineAsset>(timelinePath);
if (timelineAsset == null)
{
Debug.LogError($"找不到Timeline资源: {timelinePath}");
Debug.LogError($"[Timeline Debug] 找不到Timeline资源: {timelinePath}");
return;
}
Debug.Log($"[Timeline Debug] Timeline资源加载成功: {timelinePath}");
openPlayable.playableAsset = timelineAsset;
// BindPlayToolPanel();
// BindDialogController();
// 检查所有轨道的绑定状态
var timeline = openPlayable.playableAsset as TimelineAsset;
if (timeline != null)
{
var tracks = timeline.GetOutputTracks();
Debug.Log($"[Timeline Debug] Timeline包含 {tracks.Count()} 个轨道:");
foreach (var track in tracks)
{
var binding = openPlayable.GetGenericBinding(track);
Debug.Log($"[Timeline Debug] 轨道: {track.name}, 绑定状态: {(binding != null ? "" : "")}, 绑定对象: {binding?.name ?? ""}");
}
}
Debug.Log("[Timeline Debug] 开始播放 Timeline");
openPlayable.Play();
// 添加播放状态变化的监听
openPlayable.stopped += (director) => Debug.Log("[Timeline Debug] Timeline 播放结束");
openPlayable.paused += (director) => Debug.Log("[Timeline Debug] Timeline 暂停");
}
public void FinishCut()
{