I’m trying to figure out how to have some UI Screen Panels link to one another. I’m considering each screen to be a prefab, and then I’ve created a script that attaches on a button that will connect a screen to another screen. In this way the user will be able to advance through screens.
The problem I’m finding is that when I drag these Panels into the scene, the prefab loses this reference. I’ve taken a screen shot below to indicate an example of the bolded reference (UIButton Flow Panel at the bottom right) that gets lost when the prefab enters the scene.
I suspect there is some issue with linking from deep in the object hierarchy.
I found this rather ancient forum post that suggests that such prefab-to-prefab linking only works at the top level of the hierarchy, not deep like I’ve done here. I’ve tested that and it seems to work. Is that really the only solution?
I want to be clear here. I don’t want prefabs to link to objects in the scene. I know that that doesn’t work. I want to have a prefabs link to other prefabs so that I can organize how they’re connected at the prefab level, and instantiate them or drag them to the scene at some other time.