Search Issue Tracker
Active
Under Consideration for 2022.3.X, 6000.0.X, 6000.1.X, 6000.2.X
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
Comments (3)
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
- Memory leak when a lot of UI elements are spawned and despawned
- Warnings are not logged in the Console window when using external code analyzers
- Errors “TLS Allocator ALLOC_TEMP_TLS, underlying allocator ALLOC_TEMP_MAIN has unfreed allocations, size 288“ appear constantly when Prefab is open
- Crash on PPtr<Shader>::operator or NullException errors spammed in console when calling Dispose() on null GraphicsBuffer with baked Reflection Probes
- “EndRenderPass: Not inside a Renderpass” and other Render Graph errors in the Player when Render Graph is enabled and Overlay UI is used
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