Search Issue Tracker
Duplicate
Votes
7
Found in
2022.3.42f1
6000.0.15f1
6000.1.0a7
6000.2.0a1
7000.0.0a1
Issue ID
UUM-77769
Regression
No
Spawning a prefab with nested prefabs through InstantiateAsync will remove all but the last array references in the root script
Reproduction steps:
1. Open the attached “Repro“ project
2. Open the “Assets/InstantiateTest/InstantiateTest.unity“ Scene
3. Enter the Play Mode
4. Press the 'A' button when the Game View is in focus
5. Observe the Console
6. Select the “PrefabRoot (Clone)“ GameObject in the Hierarchy
7. Observe the “Prefab Childs” list in the Inspector
Expected result: No errors are present and all of the “PrefabChild“ Child GameObjects are referenced in the list
Actual result: “Prefab Child is null!” error is thrown in the Console and only the last “PrefabChild“ Child GameObject is referenced in the list, others are missing
Reproducible with: 2022.3.42f1, 6000.0.15f1
Couldn't test with: 2021.3.42f1 ('InstantiateAsync()' is not available)
Reproducible on: Windows 10 (User's platform), M1 Max MacOS 14.5 (Tested by CQA)
Not reproducible on: No other environment tested
Notes:
- The issue is present on both Editor and Build. Instantiate() works as expected, but the issue is present with the InstantiateAsync() call
- Reproducible with Android Player
-
Resolution Note:
Duplicate of UUM-77930 (and verified fixed by PR to fix that issue) :
Checked against 6000.0.17f1 and 2022.3.45f1
Duplicate of https://issuetracker.unity3d.com/product/unity/issues/guid/UUM-77930
Comments (3)
-
acherkashin
Sep 03, 2024 11:28
same issue in 2022.3.44
-
CDAGaming
Sep 02, 2024 00:33
Reproduced on 2022.3.43f1
-
Winddy123
Aug 26, 2024 05:16
Have the same problem in 2022.3.42f1
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
This is a duplicate of issue #UUM-77930