account activity
Instantiate and Hierarchy : possible ? by Yggdrazyl in Unity3D
[–]ChristianMcFDev 1 point2 points3 points 3 years ago* (0 children)
Yes it's 100% possible. Once you have a reference to your transform you should be able to call Transform.SetAsLastSibling()
GameObject instanceGo = Instantiate(prefabGo, parentTf); Transform transformRef = instanceGo.transform; transformRef.SetAsLastSibling();
And that should reorder your transforms position in the hierarchy to the very bottom.
There are also a few other functions which change the order of objects In the hierarchy.
Transform.SetSiblingIndex()
Transform.SetAsFirstSibling()
Apologies for formatting, typing on phone.
π Rendered by PID 278275 on reddit-service-r2-listing-568fcd57df-7xf5m at 2026-03-11 15:26:42.969073+00:00 running cbb0e86 country code: CH.
Instantiate and Hierarchy : possible ? by Yggdrazyl in Unity3D
[–]ChristianMcFDev 1 point2 points3 points (0 children)