@Cabal: Prefabs can't reference objects and components that are not a part of the prefab. It's a Unity, and one that makes perfect sense if you think about it. After you instantiate your prefab, you need to set the anchor target (widget.SetAnchor(panelTransform) for example).