I have a moving (scrolling) widget, and I want to "stick" some sprite to it at a certain time.
I did this...
void Update()
{
Transform target = (followPushTransform) ? layout.pushTransform : layout.anchorTransform;
sprite.topAnchor.target = target;
sprite.bottomAnchor.target = target;
}
...but the sprite refused to move along the widget. I can see the targets update just right on the inspector, but the sprite don't get "stuck". Should I call some widget call on the sprite after adjustment (I tried `UpdateAnchors` with no luck)?