Subprefabs in prefab issue

I’ve tried to Instantiate prefab that contains different prefabs and then set transform.Parent(container, false) It seems to work BUT the position of the subprefab inside this newly created prefab was invalid (it has the different z coordinates) compare to prefab created manually by drag and drop on to the scene - in this case everything is ok and the subprefab transform is set properly.

Does anybody face the similar problem?

Thanks in advance for any help :slight_smile:

If Im not missing something prefab inside another prefab (so called “nested prefab”) is not possible in the current version of Unity.

It is not clear from you post, are you using transform.SetParent() or assigning transform.parent directly?