Hi, thanks for the reply. You were right, I was passing in the root object.
However, now that I'm using the correct UISprite object I still can't seem to set the anchor of the target properly. It now anchors to the top side of the target widget, not the center. While I can now change this easily in the Unity editor (it's not greyed out like before), I'm still not sure how it should be done in code.
Basically what I need is something like mySprite.SetAnchors(leftTarget, TargetSide.Left, offsetValue, ...) or something else I can call to set the "Target Side" property after calling SetAnchors.
Edit: Okay so if I set a dummy object in the list and have the first item in the list preloaded and anchored to the dummy properly in the editor, then the prefabs for the other list items seem to get the correct side. I'd still feel better about setting it explicitly though.