Search Issue Tracker
Fixed
Votes
0
Found in
2022.3.39f1
6000.0.12f1
Issue ID
UUM-76229
Regression
No
The references to the child GameObjects script components are missing when spawning the root GameObject with the "Object.InstantiateAsync" method
How to reproduce:
1. Open the “ReproProjectAsync“ project
2. Open the “ReproScene“
3. Enter the Play Mode
4. Open the “Cube (Clone)_Async“ GameObject in the Inspector
5. Observe the “Element 0“ and “Element 1“ of the “Child Ref Array“ in the “ScriptReferenceComponent“ script component
Expected result: All three elements of the “Child Ref Array“ have references
Actual result: The first two elements of the “Child Ref Array“ have no references
Reproducible with: 2022.3.39f1, 6000.0.12f1
Could not test with: 2021.3.41f1 (Method “Object.InstantiateAsync“ not present in this version)
Reproducible on: macOS 14.5 (Intel), Windows 10 (User’s)
Not reproducible on: No other environments tested
Note: Issue only appears with the “Object.InstantiateAsync“ method, the “Object.Instantiate“ works as expected
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
- Certain textures are incorrectly marked in the render pass list when observed through Render Graph Viewer
- "Assertion failed on expression" error occurs when multiple Animation Components are instantiated after changing the Culling Type
- MacOS persistentDataPath uses old path when built compared to Editor Play mode
- Crash on RaiseException when entering Play Mode in a specific project
- Debug Console does not reappear when disabling and re-enabling Debug.developerConsoleEnabled
Resolution Note:
Fixed by https://issuetracker.unity3d.com/product/unity/issues/guid/UUM-77930