Skip to content

Commit 7b85234

Browse files
committed
Dismiss is not supported in Editor
1 parent 0562618 commit 7b85234

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Packages/com.github.asus4.nativedialog/Runtime/Internal/DialogEditor.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
namespace NativeDialog
66
{
7+
/// <summary>
8+
/// Mock implementation of dialogs for Unity Editor.
9+
/// </summary>
710
internal sealed class DialogEditor : IDialog
811
{
912
private string decideLabel = "YES";
@@ -61,6 +64,7 @@ public int ShowSubmit(string title, string message)
6164

6265
public void Dismiss(int id)
6366
{
67+
UnityEngine.Debug.LogWarning($"Dismiss is not supported in Editor mode. ID: {id}");
6468
if (pendingDialogs.ContainsKey(id))
6569
{
6670
pendingDialogs.Remove(id);

0 commit comments

Comments
 (0)