How would I make a saved prefab load into the scene as a child of the same parent that it got saved in? I'm trying to load UI prefabs but I can't properly do this as it isn't a child of the canvas when it is loaded in.
Thanks
Save prefab and load it with parent
Re: Save prefab and load it with parent
Hi there,
By default the parent/child relationship is defined by the Transform's 'parent' variable, so you need to ensure that this is saved along with the data and that it's possible to save a reference to the parent.
All the best,
Joel
By default the parent/child relationship is defined by the Transform's 'parent' variable, so you need to ensure that this is saved along with the data and that it's possible to save a reference to the parent.
All the best,
Joel