Search Issue Tracker

Duplicate

Votes

0

Found in

2018.1.0b9

Issue ID

1010532

Regression

No

Using async and await in an editor script does not return execution to the main thread when in Edit Mode

Themes

-

To reproduce:
1. Open the user's attached project
2. Open the custom Editor window "AsyncAwaitEditorWindow" via "Window->Async Await Demo"
3. Make sure "Editor 'pump' active" is not toggled on and press the Process button
4. Force a refresh by resizing the Game View or Scene View

Expected result: When pressing the "Process" button, 3 new GameObjects are created after 1 second
Actual result: The new GameObjects are only created after forcing the Editor to refresh

Reproduced with: 2017.1.3f1, 2017.2.2f1, 2017.3.1p3, 2018.1.0b10, 2018.2.0a4

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.