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
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)
-
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
-
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.
-
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.
-
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.
-
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.
-
YoloJero
Jul 22, 2019 08:45
Unity 2019.1.10
-
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
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- "Problem detected while importing the Prefab file" errors on Learning Templates import
- Crash on RaiseException during Socket.BeginConnect in Player when application connection is blocked through commercial firewall
- [Linux] Silent crash when generating lighting
- Decal Projector produces artifacts when the normal and decal are projected in negative z-direction and Normal Blend is set to 1
- Undoing slider field change only resets slider position, doesn't undo the value change
Resolution Note (fix version 2020.1):
Fixed in: 2020.1.0a19, in 2020.2.0a7