Search Issue Tracker
By Design
Votes
0
Found in
2019.4
2020.3
2021.2
2021.2.5f1
2022.1
2022.2
Issue ID
1385979
Regression
No
Runtime helper generated GameObjects are not added to main thread list when using Parallel.For
How to reproduce:
1. Open the user's project "TestCSharp8.zip"
2. Press Play and observe the Console Window
Expected result: Generated GameObjects are added to the list
Actual result: Generated GameObjects are not added to the list
Reproducible with: 2019.4.36f1, 2020.3.30f1, 2021.2.14f1, 2022.1.0b10, 2022.2.0a6
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
- Text Styles are not applied to Underline and Strikethrough when TextMeshPro text without tags is used
- Scene View selection is broken when there are multiple GameObjects that draw Gizmos
- Random Number Operator in a child System only has set limited seeds for particle spawning in a visual effect when entering the Play Mode
- Blender FBX file import triggering incorrect errors
- Overlay UI opaque colors are shown incorrectly in the Player when a HDR display and Linear Color Space are used
Resolution Note:
This is a user code issue: the RuntimeHelper.RunOnMainThread does not execute synchronously: it put the action in a queue which is run on each update of the singleton scriptable object. So the GameObjects are actually added during next frame, and are not yet there at the end of the Awake message.