Search Issue Tracker

Fixed in 2020.1.X

Votes

5

Found in

2019.1.0a13

2019.2.0a1

2019.2.0a11

2019.3.0a1

Issue ID

1153582

Regression

No

EditorWindow.ShowModalUtility() doesn't prevent interactions with the Editor as stated in the documentation

IMGUI

-

How to reproduce:
1. Open user-submitted project (ModalNotModal)
2. Select ModalWindow/Show from the toolbar

Expected result: the utility window does not allow interaction with the editor while running, as stated in the docs
Actual result: the utility window does allow interaction with the editor while running

Reproducible with: 2019.1.0a13, 2019.1.3f1, 2019.2.0b2, 2019.3.0a3
Could not test with: 2017.4.27f1, 2018.4.0f1, 2019.1.0a12(Modal Utility window not introduced)

  1. Resolution Note (fix version 2020.1):

    Fixed in: 2020.1.0a19, in 2020.2.0a7

Comments (7)

  1. SamTechArt

    Sep 30, 2022 23:07

    Hey, I had a similar problem, as well as a broken display. (2020.3.4)
    Using the EditorApplication.update callback allowed me to get around both problems:

    private void ShowErrorReportWindow()
    {
    EditorApplication.update += Show;
    void Show()
    {
    EditorApplication.update -= Show;
    ErrorReportWindow errorReportWindow = ScriptableObject.CreateInstance<ErrorReportWindow>();
    errorReportWindow.ShowModalUtility();
    }
    }

    It's not a very nice trick but it saved me

  2. crautou

    Jun 08, 2020 13:42

    Is there any plan to fix this ? It's a shame not to have this working properly, modal windows are crucial when creating custom tools/workflow.

  3. mattnewport

    Feb 05, 2020 00:37

    What's the point of this function (and the associated misleading documentation) if it doesn't work as described? It would be very useful to have such a function but at least fix the documentation so people don't waste their time like I just did working on an approach assuming this function works as advertised only to discover that it doesn't work at all.

  4. HarryCodder

    Sep 18, 2019 08:10

    If this will never be fixed (which is dumb because this would be super useful), just remove the method because as far as I can tell, the method actually does nothing more than ShowUtility.

  5. MichaelAtBaobab

    Aug 27, 2019 00:45

    How is this low priority? As far as I can tell, there's no other way to create a custom modal dialog in the editor. This is a core requirement for many tools and workflows, and with any normal window management should be trivial to implement. The effort to reward ratio here seems very high.

  6. YoloJero

    Jul 22, 2019 08:45

    Unity 2019.1.10

  7. YoloJero

    Jul 22, 2019 08:44

    The same thing seems to also happen for 2019.1 ... using

    CreateInstance<SomeEditorWindow>().ShowModalUtility();

    user can still fully interact with editor

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.