A GO somewhere in my worldspace.
A script attach to that.
In that script a new GO(myNewCube) spawns and i want it to be a parent of the first GO (with script attached).
Ok, i told you something wrong. The script is not attached to a GO but a prefab. And it spawns a prefab.
Sure, it looks like this:
GO
GO
GO
GO
PreFab
Script
By now, the script tries to add the new prefab to the upper prefab, which has the script attached. Either i can add the new prefab to the upper GO, or i create a totaly new GO to get all these prefabs spawned by the script. I can write the second solution, but the first solution would be the cleaner one…