Search Issue Tracker
Fixed in 2022.2.X
Duplicate in 2020.3.X
Votes
2
Found in
2021.2.2f1
Issue ID
1382276
Regression
No
In MacOS, ShowModalUtility opens a window but will not immediately draw that window
When opening a new window with ShowModalUtility, the window opens but doesn't draw until an event occurs. This occurs in MacOS only.
-
NamiaLus
Dec 18, 2021 06:16
For EditorWindows, you can try to generate a resize event as a workaround.
bool didMove = false;
void OnGUI()
{
if(!didMove)
{
// Generate a resize/reposition event for the EditorWindow
Rect rm = position;
rm.position += Vector2.one;
rm.size += Vector2.one;
position = rm;
didMove = true;
}
...
}
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
- Awaitable.NextFrameAsync() fails to resume when invoked multiple times from the playModeStateChanged event
- Text input duplicates in the TextField when textField.isDelayed is set to true and typing with a Japanese keyboard layout
- “AssetDatabase.GetMainAssetTypeAtPath" returns the incorrect type when using a global namespace class with the same name as a Unity type
- Editor silently crashes when switching platforms when Meta XR Core SDK is imported
- Crash on Object::SetCachedScriptingObject when entering the Play Mode immediately after stopping asynchronous operations in the previous Play Mode session
Resolution Note (fix version 2022.2):
UI Toolkit: UI Elements property animations, as well as scheduled items, asynchronous tasks and Update() callbacks are now updated as expected when a modal editor window is opened.