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
- Opening Terrain Prefab in Prefab Editing Mode throws "NullReferenceException" error
- [Search] Dragging query pills put them behind the search text field
- A CustomPropertyDrawer that returns a PropertyField for a property named the same as a child field will not render all child fields
- Graphics Settings shows default values instead of the real values in the Rendering Debugger when Volume.profile is assigned via script
- Deleting multiple Tags throws “NullReferenceException”, and "Retrieving array element that was out of bounds" errors when holding the Enter key
Resolution Note:
Fixed by https://issuetracker.unity3d.com/product/unity/issues/guid/UUM-77930