Search Issue Tracker

Active

Under Consideration for 2022.3.X, 6000.0.X, 6000.1.X

Votes

6

Found in

2022.3.42f1

6000.0.15f1

6000.1.0a7

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: M1 Max MacOS 14.5
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)

  1. acherkashin

    Sep 03, 2024 11:28

    same issue in 2022.3.44

  2. CDAGaming

    Sep 02, 2024 00:33

    Reproduced on 2022.3.43f1

  3. Winddy123

    Aug 26, 2024 05:16

    Have the same problem in 2022.3.42f1

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.