Unity 2021.3.43.f1 AssetsBundle Prefab Related issues

I have two prefabs, ui1.prefab and ui2.prefab. When I put ui2.prefab as a gameobject into ui1.prefab, I named the two prefabs differently in AssetBundle. At this time, I found that when I packaged the AssetBundle, the Dependencies field in the .manifest file of the bundle where ui1.prefab is located did not contain the record of ui2.prefab, which is inconsistent with the version 2021.3.34 I used before.

It seems like the issue arises due to changes in how Unity handles AssetBundle dependencies in newer versions. In Unity 2021.3.34, the dependencies may have been automatically detected and included, but in later versions, this behavior could have changed.

To resolve this, ensure that both prefabs (ui1 and ui2) are explicitly referenced and that their dependencies are correctly set in the AssetBundle settings. If Unity doesn’t automatically detect them, you might need to manually add ui2.prefab as a dependency for the AssetBundle containing ui1.prefab.

Additionally, double-check your bundle configuration and Unity’s release notes for any changes regarding AssetBundle dependencies.

I am sure that ui2 uses prefabs as a child node of ui1, and the image dependencies are all there, but if the prefab is a separate bundle, it is not included in Dependencies, so I am curious whether this is a new mechanism of unity or a bug in Unity 2021.3.34. I saw this bug in the forum, but it is shown as closed





Is this a bug or a new mechanism?