A prefab that references something outside itself, will not retain its reference. This is integral to how Unity works. It works the same with UIAnchor; UIAnchor just defaults to the camera (screen) as target, where the widgetAnchor defaults to nothing. To retain it, you have to feed the anchor target into the prefab when you instantiate it.