Skip to content

Commit a6c6038

Browse files
committed
display dialogs must run on main thread
1 parent 2d0a4a9 commit a6c6038

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

Editor/EcsactRuntimeBuilder.cs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -302,11 +302,13 @@ public static void Build(Options options) {
302302
}
303303

304304
private static void ReceiveMessage(int progressId, AlertMessage message) {
305-
EditorUtility.DisplayDialog(
306-
title: "Ecsact Runtime Builder",
307-
message: message.content,
308-
ok: "ok"
309-
);
305+
EditorApplication.delayCall += () => {
306+
EditorUtility.DisplayDialog(
307+
title: "Ecsact Runtime Builder",
308+
message: message.content,
309+
ok: "ok"
310+
);
311+
};
310312
}
311313

312314
private static void ReceiveMessage(int progressId, InfoMessage message) {

0 commit comments

Comments
 (0)