From 65fc2bdc60a7efc9440853f3f2dade167c48260c Mon Sep 17 00:00:00 2001 From: liutao <821580467@qq.com> Date: Thu, 15 Aug 2024 15:05:53 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=89=A7=E6=83=85=E3=80=91=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3=E7=B4=A2=E5=BC=95bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ProjectNLD/Assets/Code/Scripts/Gameplay/Story/StoryManager.cs | 3 ++- .../Story/Timeline/CommonAction/CommonActionClipEditor.cs | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ProjectNLD/Assets/Code/Scripts/Gameplay/Story/StoryManager.cs b/ProjectNLD/Assets/Code/Scripts/Gameplay/Story/StoryManager.cs index 96eaf236180..b868d1e28c9 100644 --- a/ProjectNLD/Assets/Code/Scripts/Gameplay/Story/StoryManager.cs +++ b/ProjectNLD/Assets/Code/Scripts/Gameplay/Story/StoryManager.cs @@ -120,7 +120,7 @@ namespace Gameplay.Story isNotRoot = false; break; } - combinePath += workTrans.name + "/"; + combinePath = workTrans.name + "/" + combinePath; workTrans = workTrans.parent; } if (isNotRoot) @@ -128,6 +128,7 @@ namespace Gameplay.Story Debug.LogError("路径不在StoryManager下面"); return ""; } + Debug.Log("full path:" + combinePath); return combinePath; } diff --git a/ProjectNLD/Assets/Editor/Story/Timeline/CommonAction/CommonActionClipEditor.cs b/ProjectNLD/Assets/Editor/Story/Timeline/CommonAction/CommonActionClipEditor.cs index 7bbe41847e4..ff41a769cd2 100644 --- a/ProjectNLD/Assets/Editor/Story/Timeline/CommonAction/CommonActionClipEditor.cs +++ b/ProjectNLD/Assets/Editor/Story/Timeline/CommonAction/CommonActionClipEditor.cs @@ -18,12 +18,12 @@ namespace Gameplay.Story.Cmp.Timeline.CommonAction } var searchTrans = StoryManager.instance.SearchTrans(clipAsset.objFullPath); - var obj = searchTrans.gameObject; - if (obj == null) + if (searchTrans == null) { clip.displayName = "未指定控制对象"; return; } + var obj = searchTrans.gameObject; var actionType = clipAsset.actionType; switch (actionType)