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.
Comments (1)
-
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
- PlayerPrefs get corrupted when a minimized fullscreen Player is closed through the Taskbar
- "To Debug, run app with -diag-job-temp-memory-leak-validation cmd line argument. This will output the callstacks of the leaked allocations." warning is printed when JobTempMemoryLeakValidation switch is enabled
- Main Thread stalling when loading Audio Source asset asynchronously while preloading another Audio Source asset
- Material artifacts occur in the Material Preview window when baked lighting is applied to scenes
- “ArgumentOutOfRangeException” after saving, reseting and re-add Default Tile Palette Tools to the list in Preferences window
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.