Skip to content

Commit 73fe62a

Browse files
committed
reimplemented the printInkLogsInConsoleOnCompile flag in ink settings
1 parent 64c4cf6 commit 73fe62a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Packages/Ink/Editor/Core/InkImporter.cs

+5-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,11 @@ public override void OnImportAsset(AssetImportContext ctx)
3333
Debug.LogWarning("Ink "+log.type+" for "+Path.GetFileName(absolutePath)+": "+log.content + " (at "+log.relativeFilePath+" "+log.lineNumber+")", inkFile);
3434
break;
3535
case ErrorType.Author:
36-
inkFile.todos.Add(log);
36+
inkFile.todos.Add(log);
37+
if (InkSettings.instance.printInkLogsInConsoleOnCompile)
38+
{
39+
Debug.Log("Ink Log for "+Path.GetFileName(absolutePath)+": "+log.content + " (at "+log.relativeFilePath+" "+log.lineNumber+")", inkFile);
40+
}
3741
break;
3842
}
3943

0 commit comments

Comments
 (0)