Skip to content

Commit

Permalink
Improve logging for finding nodes without characterData
Browse files Browse the repository at this point in the history
  • Loading branch information
BDeshiDev committed Jun 7, 2024
1 parent f145248 commit 21ffd0e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,15 +150,12 @@ public void FindNodesWithoutCharacterData()
{
foreach (var node in nodes)
{
if (node is DialogueLineNodeBase lineNode)
if (node is DialogueLineNodeBase lineNode &&
node is not DialogueChoiceNode choiceNode)
{
if (lineNode.SpeakerData?.Character == null)
{
Debug.LogWarning($"{lineNode} has no characterData", lineNode);
}
else
{

Debug.LogWarning($"{this}:{lineNode} has no characterData", lineNode);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "com.studio23.ss2.dialoguesystem",
"version": "0.4.13",
"version": "0.4.14",
"displayName": "Dialogue System",
"description": "Dialogue system is an authoring tool for developers to integrate dialogue from scriptwriters inside unity.",
"unity": "2022.3",
Expand Down

0 comments on commit 21ffd0e

Please sign in to comment.