Search Issue Tracker
Won't Fix
Votes
0
Found in
2020.3.41f1
2021.3.12f1
2022.1.21f1
2022.2.0b13
2023.1.0a17
Issue ID
UUM-18855
Regression
No
Unity Editor freezes when Task is run faster than every 1000ms
Reproduction steps:
1. Open the user’s attached project
2. Enter the Play Mode
3. In the Simulator view, click “Start”
4. In the upper-right corner, under “SPAWN TIME”, change 1 to 0.99
Expected result: Cubes are spawned faster
Actual result: Unity Editor freezes
Reproducible with: 2020.3.41f1, 2021.3.12f1, 2022.1.21f1, 2022.2.0b13, 2023.1.0a17
Reproducible on: Windows 11 Pro 21H2
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
- URP Package documentation link in Package manager leads to the deprecated page
- [Usability] No setup script for Render Pipeline Assets for the proper URP Sample usage
- csc.rsp -additionalfile files are not treated as dependencies and are not reloaded when the file contents change
- Error ‘cannot use casts on l-values’ when a variable is assigned inside a second-level nested if statement before being used in a conversion
- "You cannot save to an invalid folder" warning dialog box is shown when canceling Tile Palette creation
Resolution Note:
The issues is with the user code (int)_uiSpawnTime * 1000 results in a wait time of 0.
`await Task.Delay(0)` will be executed synchronously and control of the main thread will never be release. `Math.Max((int) (_uiSpawnTime * 1000), 1)` should solve the issue.